Closed bvaughn closed 10 months ago
resize()
also throws an error (probably unsurprisingly).
The overall problem is this:
Maybe I could change the registerPanel
handler to update the committedValuesRef
synchronously (to store the new panels) but I suspect other things might break if that's the only change. I'll look into this further soon though.
Fix published in @0.0.59
I don't love my fix. Filed #217 to follow up with a better approach.
0.0.60 fixes this in a better way.
Context: https://github.com/bvaughn/react-resizable-panels/issues/206#issuecomment-1809369778
Repro: https://codesandbox.io/s/gracious-cannon-h5stq4