rlaffers / xstate-ninja

Devtool for XState state machines
ISC License
68 stars 3 forks source link

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

Open FranciscoKloganB opened 3 weeks ago

FranciscoKloganB commented 3 weeks 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 3 days ago

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