Closed horgen closed 3 months ago
There is no layout effects used in FocusOn or FocusLock, but this problem might be related to https://github.com/theKashey/use-callback-ref/pull/43 Please give it a moment to get fixed and released. After please update the affected transitive dependency (remove record from lock file and regenerate)
I hope that will solve the issue. If not - please feel free to provide more detailed information starting from the used versions.
Using react-focus-on v3.6.0
(on react 17.0.2 and nextjs 12.1.6)
Fixed in v3.9.3
3.6.0 is waaaay behind the schedule
I have the following code rendering on both the server and client side:
When
isMenuOpen
is set to true, I show the menu as a fullscreen overlay/modal. The reason for the SSR case is because I need<Nav>
to always be visible in the DOM (SEO).This triggers this warning on the server: