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

DatePicker raises hydration error on Next.js with React Strict Mode #2541

Open
ryan5500 opened this issue Jun 3, 2022 · 0 comments
Open

Comments

@ryan5500
Copy link

ryan5500 commented Jun 3, 2022

I found SequencePrefixIdProvider provided at here, and used around DatePicker component like this.

# at pages/index.js
 import { DatePicker, SequencePrefixIdProvider } from 'smarthr-ui';

  export default function Home() {
    return (
      <SequencePrefixIdProvider>
        <DatePicker />
      </SequencePrefixIdProvider>
    )
  }

but it raises hydration error like this.
image

Versions

I use those libraries.

    "next": "12.1.6",
    "react": "18.1.0",
    "react-dom": "18.1.0",
    "smarthr-ui": "21.1.0",

How To Reproduce

Related Information

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