rlaffers / xstate-ninja

Devtool for XState state machines
ISC License
69 stars 2 forks source link

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

Open FranciscoKloganB opened 5 months ago

FranciscoKloganB commented 5 months ago

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?

rlaffers commented 4 months ago

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