Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/guides/mutations.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Custom actions provide the cleanest way to capture specific types of mutations a
The mutation lifecycle follows a consistent pattern across all mutation types:

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