zesik / react-splitter-layout

A simple split layout for React and modern browsers. https://zesik.com/react-splitter-layout
MIT License
428 stars 131 forks source link

Add secondaryHidden prop to avoid re-renders #50

Open sebastianfrey opened 4 years ago

sebastianfrey commented 4 years ago

This pull request provides an alternative API to hide the secondary pane.

Goal of this alternative API is to give users the possibility to avoid re-renders when hiding the secondary pane as described here #43 .

Therefore the new property secondaryHidden is introduced on SplitterLayout, which might be used as an alternative to conditional hiding the secondary pane.

If something is missing, please let me know.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 6c37a836bc9237c97e9d0aa646c2cee3462333cb on sebastianfrey:master into e0e54194071b778d83894179622b9ae1c58b8d34 on zesik:master.