Skip to main content

untracked

function

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.

function untracked<T>(fn: () => T): T

Import

import { untracked } from '@modular/sdk/editor';

Notes

returns
The value returned by the callback.