untracked()
untracked<
T>(fn):T
Defined in: js-api/src/u2core/signals-core.ts:126
Run a callback function that can access signal values without subscribing to the signal updates.
When called inside a createModel factory, this also suppresses
model-owned effect capture. Effects created inside the callback will not
be owned by the surrounding model and must be disposed manually. Nested
createModel calls inside the callback still capture their own effects.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
fn | () => T | The callback function. |
Returns
T
The value returned by the callback.