-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
fix: hydration error on promise example #203
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1867d1e:
|
return ( | ||
<ul> | ||
<li>count: {count}</li> | ||
<li>delayedMessage: {message}</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, ARAIU, React should internally use
a promise which is directly put in JSX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why...🤔 maybe ask React member to get some help?
If using |
Now I get why React 18.3.0 was delayed for one year :/ |
Let me try if next.js could do the promise as props |
da08771
to
a022a5c
Compare
a022a5c
to
9b928e9
Compare
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
This will fix the hydration issue. Not sure if this is correct
Fixes: #202