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

fix(sankey): use readonly array types in props #2701

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

pcorpet
Copy link
Contributor

@pcorpet pcorpet commented Mar 29, 2025

The component actually clones data that it mutates, and only iterate over the other arrays, so making them readonly is restricting the props types without any change.

The component actually clones data that it mutates, and only iterate over the other arrays, so
making them readonly is restricting the props types without any change.
Copy link

vercel bot commented Mar 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nivo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 29, 2025 7:13am

@plouc
Copy link
Owner

plouc commented Apr 1, 2025

@pcorpet, yes, in fact all charts should receive read-only data, it's also important for memoization, thank you!

@plouc plouc merged commit c361e9b into plouc:master Apr 1, 2025
4 of 5 checks passed
@pcorpet pcorpet deleted the sankey-readonly branch April 1, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants