diff --git a/src/content/post/1 Share My Incorrect Usage Cases of Zustand.md b/src/content/post/Share My Incorrect Usage Cases of Zustand.md similarity index 100% rename from src/content/post/1 Share My Incorrect Usage Cases of Zustand.md rename to src/content/post/Share My Incorrect Usage Cases of Zustand.md diff --git a/src/content/post/1 分享一下我的zustand错误使用案例.md b/src/content/post/分享一下我的zustand错误使用案例.md similarity index 97% rename from src/content/post/1 分享一下我的zustand错误使用案例.md rename to src/content/post/分享一下我的zustand错误使用案例.md index 3f3ed00..ccb8a63 100644 --- a/src/content/post/1 分享一下我的zustand错误使用案例.md +++ b/src/content/post/分享一下我的zustand错误使用案例.md @@ -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 --- -![cover.png](https://pictures.kazoottt.top/2024/12/20241217-533c0d7e7e526deaf3109fe13e49969f.png) - ## 什么是 zustand? [zustand](https://github.com/pmndrs/zustand) 是一个状态管理库,简单易用。 diff --git a/src/content/post/如何实现在markdown中渲染iframe.md b/src/content/post/如何实现在markdown中渲染iframe.md index df9a167..1869379 100644 --- a/src/content/post/如何实现在markdown中渲染iframe.md +++ b/src/content/post/如何实现在markdown中渲染iframe.md @@ -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