Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[charts] Fix zoom option reactivity #16262

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

alexfauquette
Copy link
Member

The next.mui.com/x/react-charts/zoom-and-pan/#zooming-options were broken because the zoomOptionLookup that maps axis id to its zoom options was computed on the initial render and never updated.

This PR removes it from the internal state and moves it to selectors as a derived state from and axis config.

It's still computed in the params defaultizer because it's required to initialize the zoom state

@alexfauquette alexfauquette added the component: charts This is the name of the generic UI component, not the React module! label Jan 20, 2025
@mui-bot
Copy link

mui-bot commented Jan 20, 2025

Deploy preview: https://deploy-preview-16262--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against a13493a

Copy link

codspeed-hq bot commented Jan 20, 2025

CodSpeed Performance Report

Merging #16262 will not alter performance

Comparing alexfauquette:fix-zoom-lookup (a13493a) with master (198a1f6)

Summary

✅ 6 untouched benchmarks

@alexfauquette alexfauquette merged commit de8366b into mui:master Jan 20, 2025
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: charts This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants