Skip to content
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

share data between 2 flows #8

Open
eliomaroun opened this issue Aug 2, 2019 · 4 comments
Open

share data between 2 flows #8

eliomaroun opened this issue Aug 2, 2019 · 4 comments

Comments

@eliomaroun
Copy link

If I have 2 flows each one has its State and Event. How can I pass an object from flow 1 to flow2. Not using bundle or intents of android.

@markotron
Copy link
Contributor

markotron commented Aug 2, 2019 via email

@eliomaroun eliomaroun reopened this Aug 2, 2019
@eliomaroun
Copy link
Author

Yes I have 2 state machines.
The first state machine contains a list of issues and it contains an event openIssue which will mutate the state .
This mutation will lead to the start of a new state machine which contains the issue detail.
The initial state should take the Issue object to represent it on the UI.

@markotron
Copy link
Contributor

markotron commented Aug 2, 2019 via email

@eliomaroun
Copy link
Author

I found the solution using this library where you can have many state machines and communicate between them
https://github.com/eliekarouz/FeedbackTree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants