Skip to content

Documentation / @warp-drive/core / configure / HooksOptions

Interface: HooksOptions

Defined in: warp-drive-packages/core/src/store/-private/new-core-tmp/reactivity/configure.ts:136

Contains information a SignalHooks implementation may want to use, such as the specialized key used for the signal representing an array's contents / length.

ts
interface HooksOptions {
  wellknown: {
    Array: symbol | string;
  }
}

Properties

wellknown

ts
wellknown: object;

Defined in: warp-drive-packages/core/src/store/-private/new-core-tmp/reactivity/configure.ts:142

A list of specialized symbols/strings used by WarpDrive to encapsulate key reactivity concerns.

Array

ts
Array: string | symbol;

The key used when the signal provides reactivity for the length or "contents" of an array.

Arrays only use a single signal for all accesses, regardless of index, property or method: this one.

Released under the MIT License.