vue-query
vueuse
Our great sponsors
vue-query | vueuse | |
---|---|---|
16 | 86 | |
1,082 | 18,471 | |
- | 2.4% | |
1.7 | 9.6 | |
9 months ago | 7 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.
vue-query
-
Data Fetching in Vue
I use vue-query and would recommend it.
-
Library for server state management
I think you are looking for https://github.com/DamianOsipiuk/vue-query It uses react-query/core under the hood.
-
Widget Driven Development
React-Query, SWR, Redux Toolkit Query, Vue Query for RESTful APIs
-
How can I do it better? API Calls & loading state in Vuex
Check out swrv or vue-query, they do this for you. One or two people from the vuex core team work on swrv.
-
State Management: Separation of Concerns
React Query is React specific, but its core was fully separated from React and it can be used to build solutions for other frameworks as well. Such solutions have already begun to emerge. For example, Vue Query.
-
Are there any good examples of how to compose compsable functions in Vue3?
Also, if you have lots of data refreshers that polls, you might want to check https://vue-query.vercel.app/ so you can fetch, cache and update data without the hassle
-
Getting started with Vue Query and TypeScript
If you’re interested to learn more, don’t forget to check out the Vue Query documentation and the React Query documentation.
Vue Query provides hooks for fetching, caching and updating asynchronous data in Vue.
vueuse
-
Implementing Tailwind CSS Dark Mode Toggle with No Flicker
Now, let’s talk about Vue! Once again, we’ll use an external library to handle dark mode simply and quickly. In this case, the library is called VueUse, and you can install it using the command npm i @vueuse/core --save.
-
useHooks – A collection of Server Component safe React Hooks
Great library. Could use some improvements as said by other (tree shaking, add jsdocs, etc…). Just a quick reminder for the vuejs devs out there we have https://vueuse.org/
-
UseHooks – A Collection of Server Component Safe React Hooks
Yeah, I figured useHooks was created without knowing about VueUse, but thought they might have become aware of it sense then. It makes sense, because though the code is heading in the direction of VueUse in terms of being maintained and well rounded, the structure of useHooks is quite a bit different. It has the code alongside the Markdown: https://github.com/vueuse/vueuse/tree/main/packages/integrat...
-
First Time at Vue
Also take a look at https://vueuse.org/ which might save you some lines :)
-
Why isn’t everyone using <script setup>?
For what it's worth my timeframe is very similar to yours! Started in 2019, no React / Angular. I think looking at great codebases like [VueUse](https://github.com/vueuse/vueuse) shows off the best of composition API.
-
Advice needed for Supabase + Pinia
And VueUse is an incredible addition too for cookies and so much more: https://vueuse.org/
-
Create a Shopping Cart with Vuejs and Pinia
Vueuse a collection of essential Vuejs composition utilities.
-
I still want to use options API for Vue 3
It really depends on how complex is your application but as it grows bigger and complex the composition API let's you brake into more meaningful pieces. Take a look at https://vueuse.org maybe it sparks why some of us really love composition API
Try this out. Take a Vue 3 project you are working on and make a copy of an existing component. Now rewrite that component using the composition API. See how you can group related code together inside the script setup, and then try pulling out a block of code into a composable. Again, do this with code organization in mind first. See if anything clicks for you (like it did for me). If not, then fair enough! Keep on using options. But if that starts to make sense, then you can start to explore some of the other benefits of the composition API. For that, I'd recommend browsing through the VueUse codebase to see how they set up their composition utilities.
- vue 3 component library that uses vitest
What are some alternatives?
react-query - 🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query]
swrv - Stale-while-revalidate data fetching for Vue
svelte-actions - prototype official actions for Svelte
vue-composable - Vue composition-api composable components. i18n, validation, pagination, fetch, etc. +50 different composables
react-select - The Select Component for React.js
vuex - 🗃️ Centralized State Management for Vue.js.
SWR - React Hooks for Data Fetching
vitesse - 🏕 Opinionated Vite + Vue Starter Template
zustand - 🐻 Bear necessities for state management in React
Quasar Framework - Quasar Framework - Build high-performance VueJS user interfaces in record time
vuetify - 🐉 Vue Component Framework
unbuild - 📦 An unified javascript build system