making the resize debouncing logic introduced in #41 a bit more robust. Before this change, it was sometimes not performing its intended function, which is to reduce the number of visualization library re-renders during resizing of the parent container. In the demo below you can see how the actual Plotly charts are resizing many times during the sidebar collapse, causing needless performance decrease.
making the resize debouncing logic introduced in #41 a bit more robust. Before this change, it was sometimes not performing its intended function, which is to reduce the number of visualization library re-renders during resizing of the parent container. In the demo below you can see how the actual Plotly charts are resizing many times during the sidebar collapse, causing needless performance decrease.
Demo
before:
https://user-images.githubusercontent.com/53827672/145880096-6113614f-9d6f-4101-b443-89efc5197339.mp4
after:
https://user-images.githubusercontent.com/53827672/145880084-dc274ae9-0a57-4568-9728-bb397e30cc5e.mp4