riverpod
riverpod copied to clipboard
Reword `The ref.watch method should not be called asynchronously`
Discussed in https://github.com/rrousselGit/riverpod/discussions/3528
Originally posted by MillieNakiganda May 7, 2024 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?