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

I want to make a network request before the final step is completed #112

Open
greenking19 opened this issue Sep 15, 2023 · 1 comment
Open

Comments

@greenking19
Copy link

I want to make a network request before the final step is completed.
Where should I put the data for the entire process?
Are there any relevant examples?
At present, I am thinking of using Provider, but I think it's a bit inappropriate

@narcodico
Copy link
Contributor

Hey @greenking19 👋

A network request should be initiated from your bloc/cubit and it's up to your logic to handle making the request and then emitting a state which will result in completing the flow.
I believe the bit you're missing here is that you can use your bloc/cubit state/part of state, as the driver of your flow which I feel is the way to go in your case.

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