justinpark opened a new pull request, #24886: URL: https://github.com/apache/superset/pull/24886
### SUMMARY Since the chart container triggers the resize handler by both props and state, it often tends to trigger rendering twice. This commit debounces the resize function to prevent accidental duplicate resize calls. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF After: https://github.com/apache/superset/assets/1392866/adaa3871-d4e5-45fd-a31f-cbae02c39a63 https://github.com/apache/superset/assets/1392866/41632cac-fb10-4fbe-81d2-ed822101fe56 Before: https://github.com/apache/superset/assets/1392866/48868a41-e750-4011-b654-f91a7f47b643 https://github.com/apache/superset/assets/1392866/e36c4784-e4dd-418f-a893-8334de57af8c ### TESTING INSTRUCTIONS Go to dashboard and resize the window ### ADDITIONAL INFORMATION - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] Introduces new feature or API - [ ] Removes existing feature or API -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
