Closed hbseo closed 9 months ago
onCollapse
doesn't send the state. I'm handling it by storing the state outside the component:
onCollapse={() => setIsCollapsed(true)}
onExpand={() => setIsCollapsed(false)}
It works thanks. I referred to packages/react-resizable-panels/README.md but I don't think it's updated. I think react-resizable-panels-website is updated. I'll refer to this.
react-resizable-panels: 1.0.5
This is my code in Panel component
onCollapse={(collapsed: boolean) => { console.log(collapsed); }}
Problem
(collapsed: boolean) => void
is not assignable to typePanelOnCollapse