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?
Hey!
Recently migrated away from xstate@4 to xstate@5. Due to a breaking change in xstate5 we now need to use
useActorRef
instead ofuseInterpret
. 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?