News for hackers. Stuff that matters.
Re:Vue RFC: Expose logic-related component options via funct... by dmix on Thursday June 20, 2019 @06:08PM (#20237884)
I’m curious what it means for people using single page components and how the default exported module would be structured with the new API. All the examples use the inline template strings.

The primary change seems to just be merging most of the keys/options (data, computed, watchers, etc) of the module into various functions within setup() which itself may require from coding best-practice guidelines since setup() is going to get pretty big.

I’d love to see a largish component converted to be able to compare the two instead of the small examples with one or two functions within it.

Re:Vue RFC: Expose logic-related component options via funct... by marcagba on Friday June 21, 2019 @02:09AM (#20240246)
I've noticed this example of converted component on the RFC discussion: https://gist.github.com/Akryum/6eff23ae9f7483d6b5151c26d1884...