Closed psychedelicious closed 10 months ago
v57 Repro: https://codesandbox.io/p/sandbox/stoic-elion-fp8m2n
Note the console output for prevMixedSizes is undefined on init
prevMixedSizes
undefined
I think it makes sense to leave the type as required and make prevMixedSizes === mixedSizes on init. That's a nicer than typing it as optional and needing to do a lot of checks.
prevMixedSizes === mixedSizes
The type is incorrect for the initial render. My apologies.
react-resizable-panels@0.0.58 has been published with this fix
v57 Repro: https://codesandbox.io/p/sandbox/stoic-elion-fp8m2n
Note the console output for
prevMixedSizes
isundefined
on initI think it makes sense to leave the type as required and make
prevMixedSizes === mixedSizes
on init. That's a nicer than typing it as optional and needing to do a lot of checks.