Skip to content

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

Open
@Kihoshi

Description

@Kihoshi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions