xstate-ninja icon indicating copy to clipboard operation
xstate-ninja copied to clipboard

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

Open FranciscoKloganB opened this issue 8 months ago • 1 comments

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 avatar Jun 11 '24 16:06 FranciscoKloganB