Skip to content

Commit 41c389d

Browse files
committed
update
1 parent 1f10d22 commit 41c389d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/routes/reference/store-utilities/modify-mutable.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,15 @@ Mutable store to modify.
3838

3939
- **Type:** `(state: T) => T`
4040

41-
Modifier applied to the mutable store.
41+
Modifier applied to the mutable store. For direct mutation-style modifiers, the return value is ignored.
4242

4343
## Return value
4444

4545
- **Type:** `void`
4646

4747
## Behavior
4848

49-
- `modifyMutable` runs inside a [`batch`](/reference/reactive-utilities/batch).
50-
- Dependent computations update after the modifier completes.
49+
- `modifyMutable` runs inside a [`batch`](/reference/reactive-utilities/batch), so multiple changes notify dependents after the modifier completes, and the modifier receives the unwrapped underlying state object instead of the proxy.
5150
- The modifier can be a function returned by helpers such as [`reconcile`](/reference/store-utilities/reconcile) or [`produce`](/reference/store-utilities/produce).
5251

5352
## Examples

0 commit comments

Comments
 (0)