allotment icon indicating copy to clipboard operation
allotment copied to clipboard

Invisible panes still render children

Open elliotfklein opened this issue 1 year ago • 1 comments

Repro: https://codesandbox.io/s/infallible-wozniak-s6qvcn?file=/src/App.tsx (see that the text is printed in the console)

This is easy to work around (I have a wrapper around allotment that just only includes children if visible), but wanted to confirm that this is expected behavior.

Thanks! 🙂

elliotfklein avatar Aug 26 '23 01:08 elliotfklein

Hello.

I'm not a developer, but for me personally this is a very convenient behavior. Sometimes you need to expand one panel to the entire screen based on an event, and it would not be very convenient if the state of hidden panels was reset due to the component being unmounted. Perhaps this behavior should be controlled through an additional prop in the panel

OliverWall avatar Oct 13 '23 14:10 OliverWall