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: 2 months 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 (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-21T09:24:26.000Z (3 months ago)
- Last Synced: 2025-02-21T10:30:52.600Z (3 months ago)
- Topics: fetch, query, zustand
- Language: TypeScript
- Homepage:
- Size: 167 KB
- Stars: 1
- Watchers: 2
- 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
```