Skip to content

Commit 519b65b

Browse files
authored
Update mutations.md (#642)
1 parent 01ff54c commit 519b65b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/mutations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Custom actions provide the cleanest way to capture specific types of mutations a
203203
The mutation lifecycle follows a consistent pattern across all mutation types:
204204

205205
1. **Optimistic state applied**: The mutation is immediately applied to the local collection as optimistic state
206-
2. **Handler invoked**: The appropriate handler (`onInsert`, `onUpdate`, or `onDelete`) is called to persist the change
206+
2. **Handler invoked**: The appropriate handler — either `mutationFn` or a Collection handler (`onInsert`, `onUpdate`, or `onDelete`) is called to persist the change
207207
3. **Backend persistence**: Your handler persists the data to your backend
208208
4. **Sync back**: The handler ensures server writes have synced back to the collection
209209
5. **Optimistic state dropped**: Once synced, the optimistic state is replaced by the confirmed server state

0 commit comments

Comments
 (0)