Replies: 2 comments 3 replies
-
In other words - you would like to |
Beta Was this translation helpful? Give feedback.
1 reply
-
One way you can do this now is by adding a loading: {
tags: ['pending'],
invoke: { ... }
},
// ... Then you can wait for the state machine to not have that tag anymore: // ...
if (!state.hasTag('pending')) {
resolve(...);
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using xsate on a Node.JS backend.
Here is the current flow :
Here is some pseudo code
My question is :
Is it possible to Invoke a Promise ?
I would like to keep my FSM "alive" while I have pending promises.
The goal is to modify the context based on the promise result.
Is there some hook I could use ?
Thanks for any advise.
Beta Was this translation helpful? Give feedback.
All reactions