ant-design Ant Select causing the hydration to fail on SSR when enabling open state as default

rkue9o1l  于 2022-12-31  发布在  其他
关注(0)|答案(1)|浏览(128)

https://stackblitz.com/edit/nextjs-pk1wps?file=pages%2Findex.js

Steps to reproduce

go to the above link

What is expected?

Select should work when enabling open state of dropdown, ensures that the initial server-rendered page matches what will be rendered on the client.

What is actually happening?

Error: Hydration failed because the initial UI does not match what was rendered on the server.

EnvironmentInfo
antd5.1.1
ReactReact latest version
SystemWindows 10
BrowserChrome latest version

相关问题