-
Notifications
You must be signed in to change notification settings - Fork 45
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
unnecessary async act in examples? #6
Comments
From my understanding, it's not necessary to have the "body" of |
I have a question on this subject also; I get this when i do try to put async into the act:
and if i keep the outer await, but remove the inner async, i get:
|
@peter-mouland I suppose you don't have React |
ah ok - I don't expect so. but i'll happily test it with that build. edit: amazing - my test worked first time after the update and following this guide. thanks! |
@FredyC how does this work?
If we don't return the promise in the |
You cannot return a promise from useEffect, that's a basic rule because the cleanup function is expected to be returned it and it would be confusing. AFAIK the |
I'd really like to know too. sync.md is the best explanation I've been able to find of |
is the async
act
really needed in this case?since you are not awaiting for the result of
resolve
or returning it, it seems like a normal non-asyncact
might work here.The text was updated successfully, but these errors were encountered: