API reference > @kontsedal/olas-core > untracked
untracked() function
Run fn with auto-tracking suppressed — signals read inside don't become dependencies of the surrounding computed / effect. Useful for "read these signals once to log them" or for snapshotting state inside an effect without subscribing to it. For a single-signal peek, prefer signal.peek().
Signature:
typescript
export declare function untracked<T>(fn: () => T): T;Parameters
Parameter | Type | Description |
|---|---|---|
fn | () => T |
Returns:
T