Skip to content

Commit cd19e35

Browse files
committed
update
1 parent b2b8a1b commit cd19e35

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/routes/reference/store-utilities/unwrap.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ Unwrapped value.
4141

4242
## Behavior
4343

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.
4646
- Non-proxy input values are returned unchanged.
4747

48+
Do not assume `unwrap` produces an isolated deep clone.
49+
4850
## Examples
4951

5052
### Basic usage

0 commit comments

Comments
 (0)