News for hackers. Stuff that matters.
Re:Vue RFC: Expose logic-related component options via funct... by pier25 on Thursday June 20, 2019 @07:57PM (#20238666)
It's not a new feature it's a complete new methodology.
Re:Vue RFC: Expose logic-related component options via funct... by root_axis on Thursday June 20, 2019 @08:43PM (#20238890)
The point is that you don't have to use it. If you can't be bothered to learn a simple new feature then just keep doing it the old way; your code will still work. I don't even understand the complaint; are they never supposed to change anything? It's totally optional; even if most of the community goes down that direction you don't have to.

Beyond that, hooks are super simple and the complainers are just making a big deal out of nothing. They are just callback functions that you implement outside of a class instead of overloading arbitrary method identifiers like "componentDidUpdate".

You also don't have to use it.

Re:Vue RFC: Expose logic-related component options via funct... by ng12 on Thursday June 20, 2019 @08:42PM (#20238881)
That's quite hyperbolic. Functional components have existed in React for a long time, hooks are just adding existing concepts (state and lifecycle operations) to them.
Re:Vue RFC: Expose logic-related component options via funct... by pier25 on Friday June 21, 2019 @10:42AM (#20242880)
We will have to agree to disagree. IMO the compositional paradigm of hooks is radically different than using classes for example.