Skip to content

Commit fe635b2

Browse files
docs: add example store with Immer to README
1 parent 5e336c6 commit fe635b2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ Zustand is configured with:
110110
- **Tauri Store persistence** for data that survives app restarts
111111
- **TypeScript support** for type-safe stores
112112

113+
Example store with Immer:
114+
```bash
115+
src/store/immer/immer-store.ts
116+
```
117+
113118
Example store with persistence:
114119
```typescript
115120
import { create } from 'zustand'

README.zh-CN.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ Zustand 配置包含:
110110
- **Tauri Store 持久化** 用于应用重启后保存的数据
111111
- **TypeScript 支持** 用于类型安全的状态管理
112112

113+
immer 示例:
114+
```bash
115+
src/store/immer/immer-store.ts
116+
```
117+
113118
带持久化的示例状态管理:
114119
```typescript
115120
import { create } from 'zustand'

0 commit comments

Comments
 (0)