Skip to content

Is it possible to transition inside a activity? (I heard it's an anti-pattern, I'm providing an example) #1218

Answered by Andarist
ghost asked this question in General
Discussion options

You must be logged in to vote

You can use callback service for this - just send an event from it to the invoking machine so it can transition how you tell it to

https://codesandbox.io/s/xstate-question-2suxj?file=/src/index.tsx

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected by Andarist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant