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

Update chart when props change #89

Merged
merged 1 commit into from
Feb 16, 2020
Merged

Conversation

raudabaugh
Copy link
Contributor

The 0.14 release of this library removed componentWillReceiveProps to address warnings from React that this is an unsafe method and will be removed in React 17.x. Unfortunately, this introduced a regression where updateChart is no longer called when props change. This PR restores that behavior while still satisfying the unsafe method warning by switching getDerivedStateFromProps to the componentDidUpdate lifecycle.

Related issues: #88 #84 #83 #73

@Zeikko
Copy link

Zeikko commented Jan 23, 2020

What's the status of this? I would be very happy to see this in master.

@byszo
Copy link

byszo commented Feb 2, 2020

Can this be merged asap?

@anthonyjesmok
Copy link

@fraserxu This is desperately needed. Can you please review and merge?

@jordymeow
Copy link

I would love this to be merged too. Right now, this library is not really reactive...

@fraserxu fraserxu merged commit 9c9c4b6 into fraserxu:master Feb 16, 2020
@fraserxu
Copy link
Owner

Sry for the late reply, just published to [email protected]

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.

6 participants