Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SvelteStack/svelte-query
Performant and powerful remote data synchronization for Svelte
https://github.com/SvelteStack/svelte-query
Last synced: 2 months ago
JSON representation
Performant and powerful remote data synchronization for Svelte
- Host: GitHub
- URL: https://github.com/SvelteStack/svelte-query
- Owner: SvelteStack
- License: mit
- Created: 2020-10-07T18:18:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-25T11:38:56.000Z (over 1 year ago)
- Last Synced: 2024-11-04T14:21:32.614Z (2 months ago)
- Language: TypeScript
- Homepage: https://sveltequery.vercel.app
- Size: 2.17 MB
- Stars: 822
- Watchers: 17
- Forks: 31
- Open Issues: 36
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - svelte-query
- awesome-svelte-stores - svelte-query
README
Hooks for managing, caching and syncing asynchronous and remote data in Svelte# This package has been migrated to the [TanStack Query](https://github.com/TanStack/query/tree/main/packages/svelte-query) repo.
You can install it with npm install `@tanstack/svelte-query`## Visit [tanstack.com](https://tanstack.com/query/latest/docs/svelte/overview) for docs, guides, API and more!
## Quick Features
- Transport/protocol/backend agnostic data fetching (REST, GraphQL, promises, whatever!)
- Auto Caching + Refetching (stale-while-revalidate, Window Refocus, Polling/Realtime)
- Parallel + Dependent Queries
- Mutations + Reactive Query Refetching
- Multi-layer Cache + Automatic Garbage Collection
- Paginated + Cursor-based Queries
- Load-More + Infinite Scroll Queries w/ Scroll Recovery
- Request Cancellation## Contributing
**PRs are welcome!**
You noticed a bug, a possible improvement or whatever?
Any help is always appreciated, so don't hesitate opening one!Be sure to check out the [contributing guidelines](CONTRIBUTING.md) to fasten up the merging process.
**Get started (Devs)**
```bash
git clone [email protected]:SvelteStack/svelte-query.git
cd svelte-query
yarn
yarn storybook
```**Running Storybook**
```bash
cd storybook
yarn
yarn start
```**Running the tests**
```bash
yarn test
```**Running the Docs**
```bash
cd docs
yarn
yarn build
yarn start
```
http://localhost:3000**Build**
```bash
yarn build
```