Closed UberMouse closed 1 year ago
:tada: This PR is included in version 4.1.0-beta.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This PR is included in version 4.1.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
This implements https://github.com/koordinates/xstate-tree/issues/14 xstate-tree machine building 2.0
A new single builder function for constructing xstate-tree machines, createXStateTreeMachine, has been created which replaces the previous build* functions, which have been deprecated.
This function provides better UX by eliminating the boilerplate of having to use 4 separate builder functions and allowing the omitting of selector/action/slots arguements for machines that do not need them. Providing the context object via the selectors by default.
Closes #14