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

Reword The ref.watch method should not be called asynchronously #3537

Open
rrousselGit opened this issue May 13, 2024 Discussed in #3528 · 0 comments
Open

Reword The ref.watch method should not be called asynchronously #3537

rrousselGit opened this issue May 13, 2024 Discussed in #3528 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@rrousselGit
Copy link
Owner

Discussed in #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 rrousselGit added the documentation Improvements or additions to documentation label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant