Skip to content

@xstate/store@5.0.0-alpha.8

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 17 Oct 14:34
· 15 commits to main since this release
862798a

Major Changes

  • d2c518b: The event in the initial @xstate.transition inspection record is { type: 'xstate.init' } (previously { type: '@xstate.init' }). Events use the xstate. prefix; @xstate. is reserved for inspection record and effect types.

      store.inspect((inspectionEvent) => {
    -   if (inspectionEvent.event.type === '@xstate.init') {
    +   if (inspectionEvent.event.type === 'xstate.init') {
          // initial snapshot
        }
      });