-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
How to use this in NextJS #18
Comments
Can you share a repro with me (for the error)? A link to a repository with instructions on how to run would be fine. |
const PanelGroup = dynamic(() => import('react-resizable-panels').then(({ PanelGroup }) => PanelGroup))
const Panel = dynamic(() => import('react-resizable-panels').then(({ Panel }) => Panel)) |
Looks like there are some issues with server rendered auto-generated ids matching client-rendered ones. I think the new |
I think the most straight-forward fix here is to use |
So far asI can tell, PR #22 resolves this issue. (You didn't provide a runnable repro so I'm guessing a bit after making my own Next JS app to test.) Fix released in v0.0.13 |
* Use useId hook (when available) to generate ids for panels/groups/resize handles. * Panel component no longer requires an id prop (falling back to useId if none is provided). * PanelGroup component sets default style position: relative
Hi,
This looks mighty impressive. However, when I try to use in NextJs, I am seeing the error message "document is not defined".
When I try dynamic importing it, the linter throws me this error
Thanks
The text was updated successfully, but these errors were encountered: