Table of Contents

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

other StateUpdater<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

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.