Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] xstate@5 and xstate-ninja/react #27

Open
FranciscoKloganB opened this issue Jun 11, 2024 · 1 comment
Open

[question] xstate@5 and xstate-ninja/react #27

FranciscoKloganB opened this issue Jun 11, 2024 · 1 comment

Comments

@FranciscoKloganB
Copy link

FranciscoKloganB commented Jun 11, 2024

Hey!

Recently migrated away from xstate@4 to xstate@5. Due to a breaking change in xstate5 we now need to use useActorRef instead of useInterpret. This creates an actor for a given machine logic. Does xstate-ninja/react offer a similar hook? Based on TypeScript inference there isn't. So I wonder if there is support for xstate5 in xstate-ninja/react?

@FranciscoKloganB FranciscoKloganB changed the title [question [question] xstate@5 and xstate-ninja/react Jun 11, 2024
@rlaffers
Copy link
Owner

rlaffers commented Jul 2, 2024

Hi Francisco,
XState Ninja is not compatible with XState 5 as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants