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

QueueAnim - Error - Hydration failed because the initial UI does not match what was rendered on the server - nextjs - react 18 #517

Open
Kihoshi opened this issue May 19, 2022 · 0 comments

Comments

@Kihoshi
Copy link

Kihoshi commented May 19, 2022

React 18

Hitting Error - Hydration failed because the initial UI does not match what was rendered on the server - nextjs - react 18

it throws useLayoutEffect warning in Next.js

    <QueueAnim type="right" duration={500} >
      {afterInputEmail ?<div key="div1"><p>hi</p></div>
                       : <div key="div2">Hi</div>
      }
    </QueueAnim>

one of my finding it's downgrade react to 17.0.2 and problem solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant