Equals
The equality that decides whether a write or a recomputation is a change: readers are notified only when it returns false. (Equals of @shadow-js/core)
The equality that decides whether a write or a recomputation is a change: readers are notified
only when it returns false. false instead of a function treats every write as a change.
Import#
ts
import type { Equals } from "@shadow-js/core";
Signature#
ts
type Equals<T> = false | ((prev: T, next: T) => boolean)