Skip to content

How to unsubscribe from states? #12

Answered by renggli
buehler asked this question in Q&A
Discussion options

You must be logged in to vote

I am not familiar with BLoC or xstate; and this project is much older than Flutter, so there might be things missing in this context (feel free to report feature requests, if you spot something specific).

That said, StreamTransition automatically unsubscribes from the Stream when the transition becomes inactive. This also happens when you stop the state machine, by calling stateMachine.stop().

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by renggli
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6 on December 29, 2021 11:34.