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-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ import { createMutable } from "solid-js/store";
24
24
## Type
25
25
26
26
```ts
27
-
function createMutable<TextendsRecord<PropertyKey, any>>(
27
+
function createMutable<TextendsStoreNode>(
28
28
state:T,
29
29
options?: { name?:string }
30
30
):T;
@@ -54,9 +54,9 @@ Mutable store proxy.
54
54
55
55
## Behavior
56
56
57
-
- Property reads and writes go through a proxy.
58
-
-Nested property access is reactive.
59
-
-Mutations update the store in place.
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
+
-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.
60
60
- Getters and setters defined on the initial object remain available on the mutable store.
0 commit comments