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

Remove usage of UNSAFE React method #177

Merged
merged 3 commits into from
Dec 11, 2020

Conversation

Methuselah96
Copy link
Contributor

@Methuselah96 Methuselah96 commented Dec 5, 2020

This could be considered a breaking change since the peer dependencies on React were updated, however the breaking change was actually in #167 since it uses UNSAFE_componentWillReceiveProps which was introduced in [email protected]. getDerivedStateFromProps was also introduced in [email protected] which is what this PR uses.

I also went ahead and added [email protected] to the peer dependency range since I was already updating the value.

Peer dependency on React: react@^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0 => react@^16.3.0 || ^17.0.0.

Resolves #163.

@Methuselah96 Methuselah96 changed the title Remove usage of UNSAFE React method Remove usage of UNSAFE React method and add React 17 support Dec 5, 2020
@Methuselah96 Methuselah96 changed the title Remove usage of UNSAFE React method and add React 17 support Remove usage of UNSAFE React method Dec 11, 2020
@JedWatson
Copy link
Owner

Thanks @Methuselah96

@JedWatson JedWatson merged commit f42ae1c into JedWatson:master Dec 11, 2020
@Methuselah96 Methuselah96 deleted the remove-unsafe branch December 11, 2020 01:34
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.

componentWillReceiveProps is deprecated
2 participants