3 ms·
Ya, I also could not understand why lifecycle is bad, because not only vue has it, other frameworks, like iOS sdk also has this concept. And I have never had t
by billconan 7y ago
Ya, I also could not understand why lifecycle is bad, because not only vue has it, other frameworks, like iOS sdk also has this concept.
And I have never had trouble using them.
I googled “lifecycle bad pattern. And found https://hackernoon.com/problematic-react-lifecycle-methods-are-going-away-in-react-17-4216acc7d58b https://hackernoon.com/problematic-react-lifecycle-methods-a...
But I didn’t see it explaining why it is bad.
- revskill 7y agoLifecycle is not to be reused. Hooks could be reused and used everywhere you want.
- jeremyjh 7y agoThe react community has decided reacts implementation of lifecycle methods has some downsides. Every pattern has pros and cons, which may play out differently in different implementations.