Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sveltejs/svelte
/ mutate
Function
mutate
packages/svelte/src/internal/client/reactivity/sources.js:137–143 ·
view source on GitHub ↗
(source, value)
Source
from the content-addressed store, hash-verified
135
* @param {V} value
136
*/
137
export
function
mutate(source, value) {
138
set(
139
source,
140
untrack(() => get(source))
141
);
142
return
value;
143
}
144
145
/**
146
* @template V
Callers
nothing calls this directly
Calls
3
untrack
Function · 0.90
get
Function · 0.90
set
Function · 0.70
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…