Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Fix lifecycle to support React 15.5 #346

Merged
merged 3 commits into from Apr 8, 2017
Merged

Conversation

istarkov
Copy link
Contributor

@istarkov istarkov commented Apr 7, 2017

The reason: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.createclass

Removing createClass at all from lifecycle.
(importing it from create-react-class will cause current package incompatibility with React 14, and all that require with version check is not better than current solution )

Also IMO lifecycle must be deprecated or even removed from recompose.

And yes possibly breaking change.

@TrySound
Copy link
Contributor

TrySound commented Apr 8, 2017

Maybe just object assign? It is still exists in helpers.

@istarkov
Copy link
Contributor Author

istarkov commented Apr 8, 2017

You are right

@istarkov
Copy link
Contributor Author

istarkov commented Apr 8, 2017

@TrySound fixed, thank you!

@istarkov istarkov merged commit 493851e into master Apr 8, 2017
@istarkov istarkov deleted the fix-lifecycle-for-react-15-5 branch April 8, 2017 11:19
@romseguy
Copy link

Also IMO lifecycle must be deprecated or even removed from recompose.

Why ? I'm wondering whether I should start using it in my project, thank you for your answer

@wuct
Copy link
Contributor

wuct commented Oct 10, 2017

@romseguy you can get the idea from #521 (comment).

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.

None yet

4 participants