riverpod icon indicating copy to clipboard operation
riverpod copied to clipboard

Reword `The ref.watch method should not be called asynchronously`

Open rrousselGit opened this issue 1 month ago • 0 comments

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?

rrousselGit avatar May 13 '24 08:05 rrousselGit