Method Equals
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Equals(StateUpdater<T>)
Value equality over the two wrapped (reference-stable) delegates. Two setters for the same state slot are equal across renders, so a StateUpdater<T> placed in a dependency array stays stable (UseCallback / UseEffect deps do not spuriously change).
public bool Equals(StateUpdater<T> other)
Parameters
otherStateUpdater<T>The other setter to compare.
Returns
- bool
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.