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/unwrap.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
@@ -41,10 +41,12 @@ Unwrapped value.
41
41
42
42
## Behavior
43
43
44
-
-Store proxies are removed recursively from returned objects and arrays.
45
-
-Returned objects and arrays are plain values rather than reactive store proxies.
44
+
-`unwrap` removes store proxies recursively and returns underlying plain data, reusing existing objects or arrays instead of cloning them when possible.
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
47
48
+
Do not assume `unwrap` produces an isolated deep clone.
0 commit comments