Support for React 19 as a peer dependency
Hi there,
Thank you for maintaining this amazing library! I recently upgraded my project to React 19 and noticed that allotment currently has peer dependency constraints for React versions ^17.0.0 || ^18.0.0.
The library appears to work perfectly with React 19 in my tests. Would you consider updating the peerDependencies to include React 19?
Let me know if I can assist with testing or providing more details. Thanks in advance!
Best regards,
Andreas
I am getting a lot of fatal errors Index out of bounds with react 19 and this library
Checked it again, everything works fine for me.
Checked it again, everything works fine for me.
It mostly happens when you rapidly change windows size, and/or have conditional rendering of the panels, I ended using my own solution built with react-aria because my application only have 2 panels anyway
use-resize-observer will require review and/or update https://github.com/ZeeCoder/use-resize-observer/blob/master/package.json#L75
I guess we should track issue of use-resize-observer update to react 19
I would also really appreciate it if this library had support for React 19.
I've managed to get it working with the --legacy-peer-deps option, but I think I may have to look for an alternative library. Does anyone know of any other libraries that they would recommend?
I've released v1.20.3.
It's just a change to the peer dependencies. In particular the dependency use-resize-observer will produce conflicts for the time being when using React 19 due to it only declaring support up to React 18.
@johnwalley maybe better to add pure useResizeObserver implementation mentioned in https://github.com/ZeeCoder/use-resize-observer/issues/108#issuecomment-2837671374 ?