@statesync/zustand / ZustandApplyMode
Type Alias: ZustandApplyMode
ts
type ZustandApplyMode = "patch" | "replace";Defined in: zustand.ts:56
The strategy used to apply incoming snapshot data to the Zustand store.
'patch'— Non-destructive shallow merge viastore.setState(partial). Existing keys not present in the snapshot are left untouched.'replace'— Atomic state swap viastore.setState(nextState, true). The entire state is replaced; keys excluded byomitKeysare preserved by being merged back into the rebuilt object before the swap.
