We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d8435c commit acc2b96Copy full SHA for acc2b96
src/components/layout/ResizablePanel.tsx
@@ -255,6 +255,9 @@ function ResizablePanel(
255
},
256
});
257
258
+ // Since we sync provided size and the local one in two ways
259
+ // we need a way to prevent infinite loop in some cases.
260
+ // We will run this in setTimeout and make sure it will get the most recent state.
261
const notifyChange = useEvent(() => {
262
setSize((size) => {
263
if (providedSize && Math.abs(providedSize - size) > 0.5) {
0 commit comments