I'm Mahdi.
mahdiboomeri / nuxt-query Goto Github PK
View Code? Open in Web Editor NEWSupercharged Nuxt 3 data fetching
Home Page: https://nuxt-query.vercel.app
Supercharged Nuxt 3 data fetching
Home Page: https://nuxt-query.vercel.app
I may have to delete the hooks for useFetch in favor of ofetch interceptors
A composable to easily set default options for useQuery
variants
state === 'pending'
=> same as pending
state === 'error'
=> same as !!error
state === 'success'
=> same as successful state (no error and pending)
remove if useNuxtData
got merged
Vue dev-tools plugin can help a lot in terms of DX.
dev-tools should allow:
Most of the inspiration came from @tanstack/query
.
I thought about just using the Vue adaptor however that's an additional dependency in the bundle, Nuxt already has a similar API which is well integrated with Nuxt itself.
This module is supposed to be a collection of mostly syntax sugars for patterns I saw myself reinventing in a large project using Nuxt 3 useAsyncData
.
useAsyncData
(no changing behaviors, only adding things)useMutation
useInfiniteQuery
fetchStatus
enum => 'fetching' | 'paused' | 'idle'
refetchOnOnline
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.