DEV Community

Discussion on: Top problems I got switching to Vue 3

Collapse
 
stefanovualto profile image
stefanovualto

As previously said, I will probably wait before using it in production.

But for the point 2, I kind of agree with the loss of elegance.

Where would go your preference through this three alternatives:

  • computed
  • method
  • pipe or compose functions (could be used in previous version in case)
// computed
{{reversedUppercaseMsg}}

// method
{{reversedUppercase(msg)}}

// pipe (uppercase first)
{{ pipe(uppercase,reverse)(msg) }}
// compose (uppercase first)
{{ compose(reverse, uppercase)(msg) }}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ghalex profile image
Alexandru Ghiura

Personally, I prefer the computed alternative.

Collapse
 
jsn1nj4 profile image
Elliot Derhay • Edited

I like the pipe function in place of inline filters. Definitely nicer to read than nested method calls, and definitely still good if I don't really need a computed property.