v3.5.0
3.5.0 (2022-03-15)
Features
Feature Explanations
.broadcast(), to send an event to all of the machines, allowing you to not useautoforward.hasTag()calls the built-in xstate.hasTag()API against all the cached state objects (stopping at the first successful one).matches()calls the built-in xstate.matches()API against all the cached state objects (stopping at the first successful one)
NOTE: Not a breaking change because the public API didn't meaningfully shift, but the internals of xstate-component-tree have been significantly changed in this release. Instead of invoking a new ComponentTree class for every child machine it now tracks them all without any need for recursion or new class instances. Should be a bit lighter at run-time as a result.