unplugin-vue2-script-setup
π‘ Bring `<script setup>` to Vue 2. (by unplugin)
vue-promised
π Composable Promises & Promises as components (by posva)
unplugin-vue2-script-setup | vue-promised | |
---|---|---|
4 | 2 | |
606 | 1,931 | |
- | 0.1% | |
5.8 | 5.6 | |
about 2 years ago | 13 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
unplugin-vue2-script-setup
Posts with mentions or reviews of unplugin-vue2-script-setup.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-04.
-
Nuxt or Vue only for building enterprise SPA app?
Just add composition api + https://github.com/antfu/unplugin-vue2-script-setup (if you want script setup support)
-
Auto import APIs on-demand for Vite, Webpack and Rollup
Another awesome project by Anthony Fu. I'm using it with Nuxt and https://github.com/antfu/vue2-script-setup-transform currently.
-
Bring `<script setup>` to Vue 2
Can be used with nuxt now https://github.com/antfu/vue2-script-setup-transform/blob/main/examples/nuxt/nuxt.config.js
vue-promised
Posts with mentions or reviews of vue-promised.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Equivalent of "async" pipe in Angular when using Vue + RxJS
I see that you have found a solution to your problem already - but I still recommend to have a look into vue-promised which might help you with the min-timeout & loading component.
-
Proper way to use vue-apollo with vue3
Thirdly, right now your code is not declared as async although an api call in the real world always takes a fair amount of time. So I'd make this composable async or put everything into an async function which returns a promise. I'm quite a fan of everything "posva" (Eduardo, core member) does. Besides the vue-router and Pinia (the new Vuex) he's created vue-promised which I use a lot. It easily allows you to easily setup a loading status, too.
What are some alternatives?
When comparing unplugin-vue2-script-setup and vue-promised you can also consider the following projects:
unplugin-auto-import - Auto import APIs on-demand for Vite, Webpack and Rollup
vueuse - Collection of essential Vue Composition Utilities for Vue 2 and 3 [Moved to: https://github.com/vueuse/vueuse]
vue-hooks-form - Building forms with vue composition API.
vitesse-lite - βΊοΈ Lightweight version of Vitesse
vue-use-route-query - A tiny Vue composable function to create a ref synced with vue router query
reactivue - π Use Vue Composition API in React components