unplugin-vue2-script-setup
vue-promised
unplugin-vue2-script-setup | vue-promised | |
---|---|---|
4 | 2 | |
596 | 1,884 | |
0.5% | - | |
5.8 | 6.3 | |
8 months ago | 6 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
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
-
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
-
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?
unplugin-auto-import - Auto import APIs on-demand for Vite, Webpack and Rollup
vitesse-lite - βΊοΈ Lightweight version of Vitesse
vueuse - Collection of essential Vue Composition Utilities for Vue 2 and 3 [Moved to: https://github.com/vueuse/vueuse]
reactivue - π Use Vue Composition API in React components
storybook - Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.
vueuse - Collection of essential Vue Composition Utilities for Vue 2 and 3
Quasar Framework - Quasar Framework - Build high-performance VueJS user interfaces in record time
vue-hooks-form - Building forms with vue composition API.
v-dollar - jQuery-like Vue Reactivity API
vue-use-route-query - A tiny Vue composable function to create a ref synced with vue router query
vue-sfc2esm - Transpiled Vue SFC File to ES modules.