Skip to content

Commit

Permalink
Remove the getters caching warning (zh version)
Browse files Browse the repository at this point in the history
  • Loading branch information
dukkee committed Mar 17, 2023
1 parent 963297e commit 93227ea
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/zh/guide/getters.md
Expand Up @@ -16,10 +16,6 @@ computed: {

Vuex 允许我们在 store 中定义“getter”(可以认为是 store 的计算属性)。

::: warning 注意
从 Vue 3.0 开始,getter 的结果不再像计算属性一样会被缓存起来。这是一个已知的问题,将会在 3.1 版本中修复。详情请看 [PR #1878](https://github.com/vuejs/vuex/pull/1883)
:::

Getter 接受 state 作为其第一个参数:

``` js
Expand Down

0 comments on commit 93227ea

Please sign in to comment.