github statelyai/xstate @xstate/store@3.8.1

one month ago

Patch Changes

  • #5326 68ab6fb Thanks @davidkpiano! - The XState Store undo/redo package can now be imported as @xstate/store/undo.

    import { createStore } from '@xstate/store';
    import { undoRedo } from '@xstate/store/undo';
    
    const store = createStore(
      undoRedo({
        context: {
          count: 0
        },
        on: {
          // ...
        }
      })
    );
    
    // ...

Don't miss a new xstate release

NewReleases is sending notifications on new releases.