Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the getters caching warning #2216

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions docs/guide/getters.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ If more than one component needs to make use of this, we have to either duplicat

Vuex allows us to define "getters" in the store. You can think of them as computed properties for stores.

::: warning WARNING
As of Vue 3.0, the getter's result is **not cached** as the computed property does. This is a known issue that requires Vue 3.1 to be released. You can learn more at [PR #1878](https://github.com/vuejs/vuex/pull/1878).
:::

Getters will receive the state as their 1st argument:

``` js
Expand Down
4 changes: 0 additions & 4 deletions docs/ja/guide/getters.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ computed: {

Vuex を利用するとストア内に "ゲッター" を定義することができます。それらをストアの算出プロパティと考えることができます。

::: warning 警告
Vue 3.0 では、ゲッターの結果は算出プロパティのように**キャッシュされません**。これは既知の問題で、Vue 3.2 がリリースされる必要があります。詳細は [PR #1878](https://github.com/vuejs/vuex/pull/1883) をご確認ください。
:::

ゲッターは第1引数として、state を受け取ります:

``` js
Expand Down
4 changes: 0 additions & 4 deletions docs/zh/guide/getters.md
Original file line number Diff line number Diff line change
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