Skip to content

@statesync/vue


@statesync/vue / VueApplyMode

Type Alias: VueApplyMode

ts
type VueApplyMode = "patch" | "replace";

Defined in: vue.ts:47

Controls how snapshot data is merged into the Vue target.

  • 'patch' (default) -- shallow-merges the mapped data into the current state, preserving keys not present in the snapshot.
  • 'replace' -- replaces the entire state with the mapped data, deleting keys that are no longer present (respecting pickKeys / omitKeys filters).

Released under the MIT License.