-
-
Notifications
You must be signed in to change notification settings - Fork 413
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] When using SSR I get a dom mismatch #649
Comments
I've been unable to get SSR working with style-components@5, you may want to try version 4 and see if you have any luck with that. Also make sure to be using the |
v5 seems to work fine for me other than this issue. I am using that plugin and some Babel configuration. |
TBH I have next to no experience using next.js. Is this just a warning or do things actually break Pagination? I'm really curious if there is some side effect with styled-components composition and nextjs. For example, the span that has the rows count react-data-table-component/src/DataTable/Pagination.js Lines 50 to 57 in 5fa8a9b
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is there any fix for this @jbetancur @izaacdb . I've been facing this same issue for sometime now |
same problem here |
Describe the bug
When using NextJS I see
Warning: Expected server HTML to contain a matching <span> in <nav>. in span (created by Styled(styled.span)) in Styled(styled.span) (created by Pagination).
This warning only shows up when I use pagination.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
<span class="sc-fznxKY sc-fznMAR jMFmnk">1-10 of 537</span>
should be rendered on server and clientVersions (please complete the following information)
The text was updated successfully, but these errors were encountered: