solid.createSolidSignalBridge
createSolidSignalBridge<T>(target): () => T
Bridges a @banksia/signals reactive object or domain store into SolidJS's fine-grained reactivity system.
| Name | Type | Description |
|---|---|---|
T |
extends object |
The type of reactive target object or store. |
| Name | Type | Description |
|---|---|---|
target |
T |
The reactive domain store or proxy object to bridge into SolidJS. |
fn
An accessor getter function returning the target object for use in SolidJS components.
(): T
T
Remarks
Wraps the reactive proxy target inside a SolidJS signal accessor. When any tracked property on the target mutates, the SolidJS signal is triggered, causing dependent SolidJS computations and JSX components to update. Cleanup is managed automatically when the enclosing SolidJS reactive root or component is unmounted.
Example