Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jorgecoke/zustand-query
๐ป Enhanced Zustand to query HTTP API Requests, including loading state and error handling with Zustand, without any extra data-fetching library [Lab ๐งช]
https://github.com/jorgecoke/zustand-query
fetch query zustand
Last synced: about 1 month ago
JSON representation
๐ป Enhanced Zustand to query HTTP API Requests, including loading state and error handling with Zustand, without any extra data-fetching library [Lab ๐งช]
- Host: GitHub
- URL: https://github.com/jorgecoke/zustand-query
- Owner: JorgeCoke
- Created: 2024-03-25T11:38:44.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-04T08:37:04.000Z (9 months ago)
- Last Synced: 2024-04-04T09:38:20.611Z (9 months ago)
- Topics: fetch, query, zustand
- Language: TypeScript
- Homepage:
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ป Zustand Query + Data-Fetching [Lab ๐งช]
Enhanced Zustand to query HTTP API Requests, including loading state and error handling with Zustand, without any extra data-fetching library
## What's included?
- React: https://react.dev/
- Zustand: https://github.com/pmndrs/zustand
- Typescript: https://www.typescriptlang.org/## Features
- **State management** with Zustand
- **Loading state** while fetching http requests and **error handling** out-of-the-box, with zero-config (can be easly _customized_)
- **React-Query alike API**
- Generic Reset action. **Reset your store** to its initial state
- **Extended Set action**. Call your Set action directly from your components
- Query data from your API. **Duplicated query actions are ignored!**
- Typescript's **type safety**### Set up
```
npm ci # Install dependencies
npm run dev # Launch project locally
```