Skip to content

v5.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Jul 23:43
· 118 commits to main since this release
0991745

Minor Changes

  • #74 951cea7 Thanks @tivac! - Adding .can() API from XState

    The .can() API is a simple passthrough to the interpreter for the root statechart being managed by xstate-component-tree, and is intended as a convenience function to make it easier to interact with a ComponentTree instance instead of a direct XState Interpreter reference.

    From the XState docs on .can():

    Determines whether sending the event will cause a non-forbidden transition to be selected, even if the transitions have no actions nor change the state value.