with next.js(server side render) warning: Prop `aria-controls` did not match. Server: "hidden-tt4h6d" Client: "hidden-vlpmbp"
See original GitHub issue🐛 Bug report
with next.js(server side render) warning: Prop aria-controls
did not match. Server: “hidden-tt4h6d” Client: “hidden-vlpmbp”
Current behavior
using MenuDisclosure and Menu, there is a warning:Prop aria-controls
did not match. Server: “hidden-tt4h6d” Client: “hidden-vlpmbp”
Environment
“next”: “^9.0.3”, “reakit”: “^1.0.0-beta.5”, “styled-components”: “^4.3.2”
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:11 (5 by maintainers)
Top Results From Across the Web
with next.js(server side render) warning: Prop aria-controls did ...
Bug report with next.js(server side render) warning: Prop aria-controls did not match. Server: "hidden-tt4h6d" Client: "hidden-vlpmbp" ...
Read more >Nextjs Bootstrap Dropdown issue with server side rendering
By default, the NavDropdown component will not render its children when mounting, only when it's clicked on.
Read more >How to Build a Server Side Rendered React app with Next.js
Setting up a server side rendered app with the default code generated by Create React App is not easy. You have to do...
Read more >Next.js Authentication Tutorial. TL;DR - Medium
Don't worry about this method. Its purpose is to make Next.js capable of server-side rendering your styled component (i.e., you need this to ......
Read more >在next.js中使用Select组件出现Prop `aria-controls ... - Issuehunt
Steps to reproduce. 页面引入Select组件出现 Warning: Prop aria-controls did not match. Server: "d8f8eea5-4c03-4ae3-e1e3-477cafabfd50" Client: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Could you resolve the warning?If this library support SSR,I think it’s better resolve ‘useLayoutEffect’ warning. There are too many warning in server console, It’s hard to find important information,very annoying
Not sure what can be done here, but ignoring warnings is usually not the preferred solution for developers trying to get rid of warnings.
I guess one way to solve it in userland would be to load dynamically the component maybe? Like with Next.js dynamic import: https://nextjs.org/docs/advanced-features/dynamic-import