[]previous and next page

Accessor

A reactive read: calling it returns the current value, and subscribes the running effect or memo to it when one is listening. (Accessor of @shadow-js/core)

A reactive read: calling it returns the current value, and subscribes the running effect or memo to it when one is listening.

Import#

ts
import type { Accessor } from "@shadow-js/core";

Signature#

ts
type Accessor<T> = () => T