-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[BUG] - Hydration Error with Table selectionMode = multiple #4385
Comments
I also face this issue, is it fixed or still happening? |
This worked for me. Might not be an ideal solution. |
我也遇到这样的错误存在,只要将表格切换为多选模式。 "@nextui-org/table": "^2.2.7", |
+1 |
I also face this issue, Don't use use NextThemeProvider as they talked about in suggested solution above. |
|
Also having this issue, not using the NextThemeProvider. Removing the |
Facing same issue with |
this still an annoying issue :c |
for now, you can use:
This MUST be inside a client component |
Same issue here. |
Same issue |
NextUI Version
2.6.8
Describe the bug
Using the example code from https://nextui.org/docs/components/table#use-case-example, causes a hydration error.
I have added the 'use client' as required (since the page uses useState etc).
Digging into it, if I change
selectionMode="multiple"
toselectionMode="single"
the hydration error disappars, so the error appears to be with the column that is added to allow multiple selectionsYour Example Website or App
https://codesandbox.io/p/devbox/elastic-tu-vydmx3?workspaceId=ws_WuwAJnJobgVN2wdMCvZdPR
Steps to Reproduce the Bug or Issue
Create a page, using the table full use case example - https://nextui.org/docs/components/table#use-case-example
Expected behavior
No Hydration Error
Screenshots or Videos
Operating System Version
Linux
Browser
Firefox
The text was updated successfully, but these errors were encountered: