From 351f30e47d4e2a67e00502d767c68dcd9c227498 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 17 Mar 2023 08:22:10 +0100 Subject: [PATCH 1/3] Remove the getters caching warning --- docs/guide/getters.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/guide/getters.md b/docs/guide/getters.md index 00dba7b70..f4ee80543 100644 --- a/docs/guide/getters.md +++ b/docs/guide/getters.md @@ -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 From 963297e5bb3c39fa44b5b5fa4dbef6c2ed2f3ecf Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 17 Mar 2023 08:24:41 +0100 Subject: [PATCH 2/3] Remove the getters caching warning (ja version) --- docs/ja/guide/getters.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/ja/guide/getters.md b/docs/ja/guide/getters.md index c77f305ff..9febb72e7 100644 --- a/docs/ja/guide/getters.md +++ b/docs/ja/guide/getters.md @@ -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 From 93227ea5b534ba47d209387a99779eba21e5c91b Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 17 Mar 2023 08:26:27 +0100 Subject: [PATCH 3/3] Remove the getters caching warning (zh version) --- docs/zh/guide/getters.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/zh/guide/getters.md b/docs/zh/guide/getters.md index daf790e20..d4bb39505 100644 --- a/docs/zh/guide/getters.md +++ b/docs/zh/guide/getters.md @@ -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