EQWorks / widget-studio

Widget-creating tool for charts, maps, tables, stats
https://eqworks.github.io/widget-studio/
2 stars 3 forks source link

[G2M] UI/debounced resize improvement #54

Closed vxsl closed 2 years ago

vxsl commented 2 years ago

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

github-actions[bot] commented 2 years ago

📚 Storybook preview (updated to a779a23a32d3e25caca75bd1e56272562c087bdb)