GitHub package.json versionTypeScriptNPM
GitHub package.json versionTypeScriptNPM

store.setState Tags Commands

About the set-state tag commands

By default, store.setState recursively merges new changes into current state.

To overwrite current state slices with new values, 7 tag commands have been provided:

  1. @@CLEAR: sets state slice to its corresponding empty value
  2. @@DELETE: removes plain object properties and array items
  3. @@MOVE: moves array elements
  4. @@PUSH: pushes new items into an array
  5. @@REPLACE: replaces property values
  6. @@SET: sets property values
  7. @@SPLICE: splices array items