You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The next version of the React ESLint plugin should contain a warning for this: [ESLint] Disallow hooks in async functions. That should hopefully help to spot this a bit easier.
I'm having a look at the getting started docs in #1017, I made a note there to potentially mention async components. Thanks for the feedback!
Wonderful! Sorry @amannn if i mess some parts, but this new way of thinking about react with servers, hybrid and clients. Now with server action above all of this, this get really tricky for the next weeks ahah
Description
Note
This post has been updated, please see answers in post below for changes, this is only kept for history.
Hi,
For various reason, i need my RSC to be asynchronous (data fetching). Maybe I've missed something
❌ Not working
✅ Working
By just removing
async
keyword the following error message disappear and 500 HTTP is not presentVerifications
Mandatory reproduction URL
https://github.com/ScreamZ/repro-temp
Reproduction description
pnpm install
or whateverjust run app and go on first page
Expected behaviour
No crash or something to work around ? I might have missed something in the doc ? :'(
The text was updated successfully, but these errors were encountered: