Skip to content
module@warp-drive/core/configure

Function setupSignals() ​

ts
function setupSignals<T>(buildConfig: (options: HooksOptions) => SignalHooks<T>): void;

Defined in: warp-drive-packages/core/src/signals/reactivity/configure.ts:192

Configures the signals implementation to use, replacing any configured before. To add a framework's hooks alongside those of other frameworks, use registerSignals instead.

See HooksOptions for the options passed to the provided function when called.

See SignalHooks for the implementation the callback function should return.

Type Parameters ​

T ​

T

Parameters ​

buildConfig ​

(options: HooksOptions) => SignalHooks<T>

a function that takes options and returns a configuration object

Returns ​

void

Released under the MIT License.