Using ref.watch in asynchrounous calls #3528
Unanswered
MillieNakiganda
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I'll reword it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the riverpod documentation, there is a line that says: "The ref.watch method should not be called asynchronously". How I interpreted this was that we cannot await a ref.watch, thus not used in asynchronous methods.
But I can see that ref.watch was called in an async method in the documentation in this example .
which is making me wonder If I got this all wrong?
Beta Was this translation helpful? Give feedback.
All reactions