@b.s/vue-qwery
v3.1.1
Published
Simple composable async state management utilities for Vue
Downloads
37
Maintainers
Readme
✨ Features
- 🤸🏽♂️ One lightweight package to manage REST and GraphQL APIs or any other kind of API
- 🔩 Fully customizable behavior by creating your own cache store and query key implementations
- ± Request deduplication by query key
- 📢 Synchronize all instances of Qweries which share query keys
- 🗂️ Normalized and document caches available
- 🧐 Sourcemaps for easy debugging
- ⛓️💥 Decouple data fetching logic from the type of API or frontend framework
- ✂️ Simple public APIs
- 🌏 CJS + ESM
qwery
is a collection of lightweight composable hooks and helpers to aid with async state management. It was designed with the aim of simplifying architectural migrations to support building evolutionary architectures in mind.
📚 For more information, check out the wiki.
∑ TLDR;
- Normalized and document caching + structural sharing + query cancellation + automatic garbage collection + subscriptions/polling + suspense + refetching + mutations + broadcast updates + SSR = Any place ✅
- Backend agnostic + client side transactions + retry mechanism + batching = Any time ✅
- React + Vue + Solid + Svelte = Anywhere ✅
📦 Release
After a few bumpy 1.x.x and 2.0.x releases 😬, v2.1.x onwards are considered stable
🤛🏽 Credits
qwery
heavily draws upon ideas from:
misc:
- urql: really nice README
- apollo-client: GraphQL document transforms
🤝🏽 Contributions
- Contributions are welcome, just make a pull request
"Man's duality, life and its formalities"