allotment
allotment copied to clipboard
Invisible panes still render children
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! 🙂
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