@statesync/jotai / JotaiApplyMode
Type Alias: JotaiApplyMode
ts
type JotaiApplyMode = "patch" | "replace";Defined in: jotai.ts:51
The strategy used to apply incoming snapshot data to the Jotai atom.
'patch'— Non-destructive shallow merge. The adapter uses the store's updater formstore.set(atom, prev => ({ ...prev, ...patch }))to atomically merge the filtered snapshot keys into the current atom value. Existing keys not present in the snapshot are left untouched.'replace'— Atomic value swap. The adapter rebuilds the full state, preserving keys excluded byomitKeys, and writes it viastore.set(atom, next).
