MCPcopy
hub / github.com/sveltejs/svelte / untrack

Function untrack

packages/svelte/src/internal/client/runtime.js:763–771  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

761 * @returns {T}
762 */
763export function untrack(fn) {
764 var previous_untracking = untracking;
765 try {
766 untracking = true;
767 return fn();
768 } finally {
769 untracking = previous_untracking;
770 }
771}
772
773/**
774 * Possibly traverse an object and read all its properties so that they're all reactive in case this is `$state`.

Callers 15

onMountFunction · 0.90
onDestroyFunction · 0.90
createSubscriberFunction · 0.90
fromActionFunction · 0.90
subscribe_to_storeFunction · 0.90
capture_signalsFunction · 0.90
initFunction · 0.90
actionFunction · 0.90
transitionFunction · 0.90
bind_valueFunction · 0.90
bind_checkedFunction · 0.90
bind_element_sizeFunction · 0.90

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…