Akryum / Akryum/vue-supply

Using Vuex getters inside a supply

Aberta
#9 1 comentário 2 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
159
Forks
16
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.