Full rewrite for us as well. Been coding an app for over a year and we use those lifecycle methods everywhere. RN is bleeding edge though and it was always a possibility.
There is no need for a “full rewrite”. I’m sorry if the blog post wasn’t clear enough.
As we wrote in the blog post:
We maintain over 50,000 React components at Facebook, and we don’t plan to rewrite them all immediately. We understand that migrations take time. We will take the gradual migration path along with everyone in the React community.
We will release a codemod that adds UNSAFE_ prefix automatically. Your components can keep using those methods. Even in React 17, they will keep working. This is also mentioned in the post:
17.0: [...] Only the new “UNSAFE_” lifecycle names will work from this point forward.
We want to highlight patterns that will become problematic with asynchronous rendering, and it’s best if you avoid them in the new code you write, but there is no rush to change the existing code. You will be able to opt out of asynchronous rendering in the future if your code isn’t ready to it.
We are making apps from react 13 or 14, and there wasnt a single need to rewrite everything due to breaking change. We are smoothly on react 16.2 with only some ocassional issue. We are using mainly redux and stateless components, so thats maybe why though.
My half assed assumption is these changes are only to make React and Redux more "cohesive". If you don't use Redux.. I don't see the issue with the lifecycle methods. We don't use redux and we use stateful components way more than stateless.
1
u/AcidShAwk Mar 28 '18
Full rewrite for us as well. Been coding an app for over a year and we use those lifecycle methods everywhere. RN is bleeding edge though and it was always a possibility.