koordinates / xstate-tree

Build UIs with Actors using xstate and React
MIT License
82 stars 6 forks source link

feat(builders): builders 2.0 #35

Closed UberMouse closed 1 year ago

UberMouse commented 1 year ago

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

github-actions[bot] commented 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:

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 4.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: