Update docs and sort content

This commit is contained in:
github-actions[bot]
2025-02-01 14:47:53 +00:00
parent cec6f22ac0
commit e3cc46de29
3 changed files with 3 additions and 4 deletions

View File

@ -17,11 +17,10 @@ slug: zustand-use-record
description: zustand 是一个状态管理库,简单易用。它可以通过使用 single selector 或 shallow 来获取 state避免所有组件都重新渲染。当 state 更新时,可以通过 useShallow 来只获取需要的数据。同时,应该遵循最小粒度原则,只获取需要的数据,而不是使用多个 store 去存储不同的 state。另外与 UI 无关的 state 不需要通过 selector 获取,正确的做法是直接在 handleSave 方法内部访问 store。 description: zustand 是一个状态管理库,简单易用。它可以通过使用 single selector 或 shallow 来获取 state避免所有组件都重新渲染。当 state 更新时,可以通过 useShallow 来只获取需要的数据。同时,应该遵循最小粒度原则,只获取需要的数据,而不是使用多个 store 去存储不同的 state。另外与 UI 无关的 state 不需要通过 selector 获取,正确的做法是直接在 handleSave 方法内部访问 store。
toAstro: true toAstro: true
date_created: 2025-01-04T11:44:53+08:00 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
--- ---
![cover.png](https://pictures.kazoottt.top/2024/12/20241217-533c0d7e7e526deaf3109fe13e49969f.png)
## 什么是 zustand ## 什么是 zustand
[zustand](https://github.com/pmndrs/zustand) 是一个状态管理库,简单易用。 [zustand](https://github.com/pmndrs/zustand) 是一个状态管理库,简单易用。

View File

@ -14,7 +14,7 @@ rinId: 19
category: 前端 category: 前端
toAstro: true toAstro: true
date_created: 2025-01-04T11:44:53+08:00 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 # 1 如何实现在 markdown 中渲染 iframe