Closed damaafer closed 7 months ago
Usage of useLayoutEffect on this component cause warning in SSR https://github.com/bvaughn/react-resizable-panels/blob/a4821fce0d893fdbbb1f67c945050b0d323ad810/packages/react-resizable-panels/src/PanelResizeHandle.ts#L100
Can you fix this with useIsomorphicLayoutEffect?
Yuck. My bad. I intended to use my little useIsomorphicLayoutEffect wrapper everywhere but forgot in this case. I should probably add a lint rule.
useIsomorphicLayoutEffect
Fix released as 2.0.6; sorry for the hassle
❤️ → ☕ givebrian.coffee
Usage of useLayoutEffect on this component cause warning in SSR https://github.com/bvaughn/react-resizable-panels/blob/a4821fce0d893fdbbb1f67c945050b0d323ad810/packages/react-resizable-panels/src/PanelResizeHandle.ts#L100
Can you fix this with useIsomorphicLayoutEffect?