Skip to content
module@warp-drive/tc39-proposal-signals/install

Importing this entry point configures WarpDrive to use the TC39 Signals polyfill for reactivity: on import it calls registerSignals with buildSignalConfig.

If @warp-drive/alien-signals/install was imported first, each Signal.State is registered with its signals graph, alongside any other framework's signals, and memos come from that graph. Otherwise it configures the polyfill on its own with setupSignals.

Add the import to the top of your application. If you have tests which do not invoke your app, add it to your test setup as well:

ts
import '@warp-drive/tc39-proposal-signals/install';

A library should do this only in its tests, not in its published code. See Installation for the full setup.

Functions ​

Released under the MIT License.