Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 15 Aug 15:45
· 50 commits to main since this release
3e5424d

Minor Changes

  • #5027 758a78711d Thanks @davidkpiano! - You can now inspect XState stores using the .inspect(inspector) method:

    import { someStore } from './someStore';
    
    someStore.inspect((inspEv) => {
      console.log(inspEv);
      // logs "@xstate.event" events and "@xstate.snapshot" events
      // whenever an event is sent to the store
    });
    // The "@xstate.actor" event is immediately logged