saga-toolkit 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,6 +13,27 @@ If you love the "fire-and-forget" nature of Sagas for complex flows but miss the
|
|
|
13
13
|
- ⚡ **Reduce Boilerplate**: Easily handle loading/success/error states in slices using standard RTK patterns.
|
|
14
14
|
- 🛑 **Cancellation**: Propagates cancellation from the promise to the Saga.
|
|
15
15
|
|
|
16
|
+
## 🎮 Try the Example App
|
|
17
|
+
|
|
18
|
+
This project includes a fully functional **Todo App** built with **Vite**, **React 18**, and **TypeScript** to demonstrate:
|
|
19
|
+
* `createSagaAction` (AsyncThunk bridge)
|
|
20
|
+
* `takeEveryAsync` (Awaitable actions)
|
|
21
|
+
* `takeLatestAsync` (Cancellable search)
|
|
22
|
+
* `putAsync` (Saga composition)
|
|
23
|
+
|
|
24
|
+
### Run Locally
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
cd example
|
|
28
|
+
npm install
|
|
29
|
+
npm run dev
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Try Online (StackBlitz)
|
|
33
|
+
> Note: Requires the package to be published to npm.
|
|
34
|
+
|
|
35
|
+
[](https://stackblitz.com/github/janoist1/saga-toolkit/tree/master/example)
|
|
36
|
+
|
|
16
37
|
## Installation
|
|
17
38
|
|
|
18
39
|
```bash
|