bvaughn / react-resizable-panels

https://react-resizable-panels.vercel.app/
MIT License
3.87k stars 135 forks source link

fix: make PanelOnResize arg prevMixedSizes optional #212

Closed psychedelicious closed 10 months ago

psychedelicious commented 10 months ago

It is undefined on first render.

Closes #208 Context #209

FWIW, noUncheckedIndexedAccess in tsconfig would. have caught this, but it also catches a whole heck of a lot more.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-resizable-panels ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2023 7:41pm
bvaughn commented 10 months ago

Thanks!

FWIW, noUncheckedIndexedAccess in tsconfig would. have caught this, but it also catches a whole heck of a lot more.

Not apposed to making this change but probably don't have time/energy to do it myself.