Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Removing old segments on update.#88

Merged
austinpray merged 1 commit intoreactjs:masterfrom
cryptic-mystic:master
Mar 27, 2016
Merged

Removing old segments on update.#88
austinpray merged 1 commit intoreactjs:masterfrom
cryptic-mystic:master

Conversation

@cryptic-mystic
Copy link
Contributor

So I was using the Doughnut Charts in this library, and thought it strange that some of my old data points remained after my component store updated. Turns out, if the new data array is shorter than the original, those segments are never replaced and remain. So I added a quick loop that removes old data segments from the chart. :) Lemme know what you think!

@austinpray
Copy link
Member

Works great! Thank you!

@austinpray austinpray merged commit 07b095c into reactjs:master Mar 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants