-
Notifications
You must be signed in to change notification settings - Fork 12
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
It doesn't transition to other state #15
Comments
Hi, @aislanmaia. Thanks for reporting. Did you resolve it? If not please provide a code example or a sandbox (in codesandbox.com) and, I´ll review it. |
Hello @carloslfu. Thanks for replying. I don't know what happened, maybe I misunderstood some concepts, but I checked that the statechart was something locked into just 2 states chains, and the others wasn't get triggered. Anyways I have resolved it. But now, I'm getting confused because I'm losing my state through the hot-reloads from My question is how can I use the |
You can do it this way easily if you have only one instance of the statechart, if not it becomes trickier but not impossible. You have to create a wrapper around |
Confirmed working like a charm following the instructions in the link above. For others in this thread, my
|
As
xstate 4.3.3
and usinguse-machine 1.1.0
, the state doesn't get transitioned to others states at all.Just tested with the following tutorial (updating it to use use-machine and just plain functions components through React Hooks) and tested with the example in the README of this repo.
It seems just get dispatched and captured the events, but doesn't transitions.
The text was updated successfully, but these errors were encountered: