Skip to content

Commit

Permalink
docs: fix the afterHydrate describe (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
catcoal authored Oct 25, 2024
1 parent fed01f9 commit d1cf4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/zh/guide/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export const useStore = defineStore('store', {
- **类型**: `(context: PiniaPluginContext) => void`
- **默认值**: `undefined`

钩子函数在用持久化数据激活 store state 之前运行。这个钩子可以访问整个 [`PiniaPluginContext`](https://pinia.vuejs.org/api/pinia/interfaces/PiniaPluginContext.html)这可以用来在hydration作用之前执行特定的操作
钩子函数在用持久化数据激活 store state 之后运行。这个钩子可以访问整个 [`PiniaPluginContext`](https://pinia.vuejs.org/api/pinia/interfaces/PiniaPluginContext.html)这可以用来在hydration作用之后执行特定的操作

:::details 例子

Expand Down

0 comments on commit d1cf4a3

Please sign in to comment.