module@warp-drive/tc39-proposal-signals/install
Function buildSignalConfig() sincev5.7.0
ts
function buildSignalConfig(_options: HooksOptions): SignalHooks<State<unknown>>;Defined in: install.ts:50
Builds the SignalHooks that back WarpDrive's reactivity with the TC39 Signals polyfill. Each signal is a Signal.State whose equals always returns false, so every notification counts as a change, and each memo is a Signal.Computed. willSyncFlushWatchers always returns false, and there is no waitFor hook, so requests are not wrapped for test waiters.
Importing @warp-drive/tc39-proposal-signals/install already passes this function to setupSignals.
Parameters
_options
the HooksOptions that setupSignals passes in; this implementation does not read them
Returns
SignalHooks<State<unknown>>
the signal hooks backed by signal-polyfill
Example
ts
// what importing '@warp-drive/tc39-proposal-signals/install' does
import { setupSignals } from '@warp-drive/core/configure';
import { buildSignalConfig } from '@warp-drive/tc39-proposal-signals/install';
setupSignals(buildSignalConfig);