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

Rename unsafe component lifecycle methods #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Rename unsafe component lifecycle methods #34

wants to merge 2 commits into from

Conversation

Irev-Dev
Copy link

@Irev-Dev Irev-Dev commented Oct 17, 2019

Hey @bcherny, Thanks a bunch for this tool. It's making migrating to react possible for us 🎉 .

I'm getting some noise in the console because of this, and #32 is asking for it.

Even though there was only two instances I used npx react-codemod rename-unsafe-lifecycles to be extra safe. apart from the fact that it also added a semicolon on line 105 of index.tsx which I removed again.

Facebooks link for why they were renamed.
https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html

Tests are passing, obviously, an update of React was needed for these the new lifecycle methods to be recognized.

If in future if you want to move away from these "unsafe" lifecycle methods as fb is suggesting, I'd be willing to take a crack at it, you're okay with answering questions if I get stuck understanding the existing functionality?

Kurt Charlie Hutten added 2 commits October 18, 2019 02:00
Even though there was only two instances I used
`npx react-codemod rename-unsafe-lifecycles` to be extra safe. apart
from the fact that it also added a semi colon on line 105 of index.tsx
which I removed again.
Facebooks link for why there were renamed.
https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html
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.

1 participant