mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-22 18:21:33 +08:00
Update docs and sort content
This commit is contained in:
@ -17,11 +17,10 @@ slug: zustand-use-record
|
||||
description: zustand 是一个状态管理库,简单易用。它可以通过使用 single selector 或 shallow 来获取 state,避免所有组件都重新渲染。当 state 更新时,可以通过 useShallow 来只获取需要的数据。同时,应该遵循最小粒度原则,只获取需要的数据,而不是使用多个 store 去存储不同的 state。另外,与 UI 无关的 state 不需要通过 selector 获取,正确的做法是直接在 handleSave 方法内部访问 store。
|
||||
toAstro: true
|
||||
date_created: 2025-01-04T11:44:53+08:00
|
||||
date_modified: 2025-01-22T13:39:19+08:00
|
||||
date_modified: 2025-02-01T21:49:54+08:00
|
||||
ogImage: https://pictures.kazoottt.top/2025/02/20250201-og-1738417688145.png
|
||||
---
|
||||
|
||||

|
||||
|
||||
## 什么是 zustand?
|
||||
|
||||
[zustand](https://github.com/pmndrs/zustand) 是一个状态管理库,简单易用。
|
@ -14,7 +14,7 @@ rinId: 19
|
||||
category: 前端
|
||||
toAstro: true
|
||||
date_created: 2025-01-04T11:44:53+08:00
|
||||
date_modified: 2025-01-24T15:45:40+08:00
|
||||
date_modified: 2025-02-01T21:51:32+08:00
|
||||
---
|
||||
|
||||
# 1 如何实现在 markdown 中渲染 iframe
|
||||
|
Reference in New Issue
Block a user