For simple components the options api still seems to me very suitable. I think the composition api is more suitable for bigger and more complex components where you wantto keep all the related logic near each other.
Got it, thanks! I've found that converting even simple but reused components to composition / wrapped with the watcher makes things a lot simpler to scale up in the future... I've been using a lot of Svelte recently and Vue 3's latest direction really feels like Svelte's "writable" stores to me
And it's funny I've never heard of the term "Options API" until I started reading more into Vue 3, though I've built a bunch of projects with Vue 2 already...
wow yeah, that definitely feels very Svelteish! I'm excited for this direction Vue is going and I can't wait to see what the next Nuxt will bring.
I just took your Vue 3 SWR post concepts and implemented it for my Sapper project really successfully! I'm still not so sure about deploying Sapper projects in production seeing how so much is still in flux, but Svelte/Sapper to me is like a lighter version of Vue/Nuxt, and especially so with where Vue's going
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
For simple components the options api still seems to me very suitable. I think the composition api is more suitable for bigger and more complex components where you wantto keep all the related logic near each other.
Got it, thanks! I've found that converting even simple but reused components to composition / wrapped with the watcher makes things a lot simpler to scale up in the future... I've been using a lot of Svelte recently and Vue 3's latest direction really feels like Svelte's "writable" stores to me
And it's funny I've never heard of the term "Options API" until I started reading more into Vue 3, though I've built a bunch of projects with Vue 2 already...
I love svelte too. Have you seen the rfc about script setup syntactic sugar ? It makes vue seems more sveltish then ever.
github.com/vuejs/rfcs/pull/182
wow yeah, that definitely feels very Svelteish! I'm excited for this direction Vue is going and I can't wait to see what the next Nuxt will bring.
I just took your Vue 3 SWR post concepts and implemented it for my Sapper project really successfully! I'm still not so sure about deploying Sapper projects in production seeing how so much is still in flux, but Svelte/Sapper to me is like a lighter version of Vue/Nuxt, and especially so with where Vue's going