cashew
vue-query
cashew | vue-query | |
---|---|---|
2 | 16 | |
672 | 1,094 | |
0.3% | - | |
6.9 | 1.7 | |
4 months ago | 10 months 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.
cashew
- update cached http response on demand
-
Cache interceptor: how do I hold the second request while the first one is executing
Having said that if you can I would highly recommend you bring in a library (such as https://github.com/ngneat/cashew). I tend to favor solutions that this author stands behind because I have always found them solid and easy to use.
vue-query
-
What is useQuery (React Query) with Example - Developer Diary
I started using the Vue port of this recently, VueQuery. Once you understand that this replaces the need for a store (for data at least) then everything starts falling into place and its really easy to implement caching, infinite scrolling and other cool endpoint stuff.
-
Data Fetching in Vue
I use vue-query and would recommend it.
-
Having trouble understanding how to use Vuex
For server-side state I find something like https://github.com/DamianOsipiuk/vue-query to be nicer than Vuex, and then you can reserve Vuex for purely client-side state
-
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.
-
Nuxt noobie: Is everything done server side ? Can I cache indefinitely until webhook ?
Are you looking for this? https://github.com/DamianOsipiuk/vue-query
-
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.
- Fetch, cache and update data in your Vue 2/3 apps without touching any global state
-
Vuejs 2.6 / Apollo Reactive?
Hey, might give https://vue-query.vercel.app/ a try soon
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]
ionic-cache - Angular cache service with IndexedDB, SQLite and WebSQL support
swrv - Stale-while-revalidate data fetching for Vue
react-esi - React ESI: Blazing-fast Server-Side Rendering for React and Next.js
SWR - React Hooks for Data Fetching
netlify-cache-nextjs - Cache the Next.js build folder in your Netlify builds
zustand - 🐻 Bear necessities for state management in React
offix - GraphQL Offline Client and Server
jsonapi-vuex - Use a JSONAPI api with a Vuex store, with data restructuring/normalization.
HttpClientGoodies - Useful utilities for the .NET HttpClient.
react-hook-form - 📋 React Hooks for form state management and validation (Web + React Native)