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/reconcile.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
@@ -61,10 +61,10 @@ Store modifier function.
61
61
62
62
## Behavior
63
63
64
-
-`reconcile`performs a diff between the current state and `value`.
65
-
- With the default `key`, array items are matched by `"id"`.
66
-
-When `merge` is `false`, non-matching branches can be replaced.
67
-
- When `merge` is `true`, reconciliation pushes updates deeper into the structure.
64
+
-`reconcile`is for reconciling an incoming snapshot against existing store state.
65
+
- With the default `key`, array items are matched by `"id"` where possible and otherwise fall back to positional or reference matching.
66
+
-Non-wrappable values are replaced directly.
67
+
- When `merge` is `false`, reconciliation prefers replacing non-matching branches. When `merge` is `true`, it pushes updates deeper into the structure.
0 commit comments