You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routes/reference/store-utilities/create-mutable.mdx
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Mutable store proxy.
56
56
57
57
-`createMutable` creates mutable shared state through a reactive proxy. Property reads and writes go through that proxy, and nested property access is reactive.
58
58
- Writes, deletes, and array mutator methods are batched through the proxy while updating the store in place.
59
-
-This is primarily a client-side reactive proxy mechanism.
59
+
-`createMutable` exposes reads and writes through the same proxy instead of separating them into a getter and setter.
60
60
- Getters and setters defined on the initial object remain available on the mutable store.
Copy file name to clipboardExpand all lines: src/routes/reference/store-utilities/unwrap.mdx
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ Unwrapped value.
44
44
-`unwrap` removes store proxies recursively and returns underlying plain data, reusing existing objects or arrays instead of cloning them when possible.
45
45
- Frozen objects and arrays are shallow-copied before recursive unwrapping, while mutable ones are unwrapped in place.
46
46
- Non-proxy input values are returned unchanged.
47
+
- Mutating the returned value can mutate the underlying store data.
47
48
48
49
Do not assume `unwrap` produces an isolated deep clone.
0 commit comments