Skip to content

feat(ngrx-toolkit): add rollback and nested dot-path key support to withUndoRedo - #311

Open
asollberger wants to merge 1 commit into
angular-architects:mainfrom
asollberger:feature/rollback-and-nested-state
Open

feat(ngrx-toolkit): add rollback and nested dot-path key support to withUndoRedo#311
asollberger wants to merge 1 commit into
angular-architects:mainfrom
asollberger:feature/rollback-and-nested-state

Conversation

@asollberger

Copy link
Copy Markdown
  • Add rollback(savepoint) method that restores state to a Date.now() timestamp, moving intermediate changes to the redo stack
  • Support dot-path keys (e.g. 'filter.searchTerm') in the keys option, enabling tracking of nested state properties
  • Add type-safe DotPath utility type for compile-time validation of nested key paths
  • Add tests for rollback, nested dot-path keys, and complex nested state
  • Add rollback section to documentation
  • Add demo component showcasing undo/redo with rollback and savepoints

- rollback allows to go back with the state to a specific point in time
- nested state allows to specify state keys that are nested deeply in the store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant