[]previous and next page

Equals (@shadow-js/core/extend)

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/extend)

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/extend";

Signature#

ts
type Equals<T> = false | ((prev: T, next: T) => boolean)