How to refresh multiple FutureProvider(s) sequentially? #1243
Unanswered
kasipavankumar
asked this question in
Q&A
Replies: 1 comment
-
Could you make an example that can be executed? I don't see why you'd be getting the old data in the code you gave. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I have the following
FutureProvider(s)
The goal is to refresh all the above providers on after the other, for which I have the following function:
Expected behavior
I expect the providers to refresh sequentially whereas they don't.
ref.refresh(fetchUserContactsFuture);
get executed first followed by the other two providers. This way, I am still getting the old set of contacts from API. Am I getting something wrong here?Beta Was this translation helpful? Give feedback.
All reactions