3 ms·
Vue 1.x was great, v2 lost its way, and Vue 3 with the composition API looks fantastic on paper. (I haven’t used it in any meaningful way) I’m even more impres
by gherkinnn 4y ago
Vue 1.x was great, v2 lost its way, and Vue 3 with the composition API looks fantastic on paper. (I haven’t used it in any meaningful way)
I’m even more impressed with the extended Vue ecosystem like Vite, Vitest.
- mmis1000 4y agoI used it in a few project. And it reduces the code by a lot. For example. To make a mutex to prevent duplicate submit of form. You use need to declare a instance field and wraps the code that do the submit. That alone is 3 lines of code but don't even include error handling. But now I sealed it into a one line hook const wrap = useMutex() const submit = wrap(async () = { … }) And then the submit can't run in parallel now.
- KronisLV 4y ago> Vue 3 with the composition API looks fantastic on paper. (I haven’t used it in any meaningful way) Recently worked on migrating a large codebase over from a legacy solution to Vue 3 with composition API, it was a pretty enjoyable experience, especially with Pinia! Though I'd say that the problem was that most component libraries/frameworks out there actually don't support Vue 3 well enough. Last I checked, only the following were viable with Vue 3: - Ant Design - Element Plus - PrimeVue (went with this, also has icons and a layout solution; also alternatives available for React and Angular) Most of the other ones considered weren't quite there yet: - Vuetify - Quasar - BootstrapVue - Vue Material - Buefy - View UI - Vuikit - Chakra UI I mean, is it really so hard to get a bunch of pre-built components for Vue 3 with Bootstrap, or Bulma? It feels a bit like the Python 2 to Python 3 migration in some respects.
- Hawxy 4y ago> Most of the other ones considered weren't quite there yet From what I recall, quasar managed to update very quickly. Vuetify is currently in Beta for Vue 3 as they went with a greenfield rewrite to deal with tech debt. I rolled it out to a production site recently and it works well. BootstrapVue completely dropped the ball, despite the corporate sponsorships the original maintainers went missing for a whole year & bailed. It got new maintainers at the start of the year, but they've been delayed by current geopolitical events.
- KronisLV 4y ago> From what I recall, quasar managed to update very quickly. This is true, at least there now is Vue 3 support, just checked: https://quasar.dev/ https://quasar.dev/ Though I can't edit the original post anymore. Oh well, thanks for clearing that up.