Akryum / Akryum/vue-supply

Using Vuex getters inside a supply

未关闭
#9 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
159
派生
16
PR 合并指标
30 天内没有已合并 PR

描述

Hi, I'm having a hard time wrapping my head around the way supply cache is used.

I'm injecting the store (composed with injectSupply(storeOptions, supplyCache)), but when I try to use it in my supply with this.$store I get two keys :

this.$store.default which is the store I want to use,
and this.$store.supplyCache.

Therefore I can't use mapgetters and all. Is there a right way to access store getters from the supply? When I'm trying to launch a subscription depending on Vuex store data it seems that this.$store.default is undefined on first run so it makes the app crash.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。