Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

243
Visualizações
Vuex/quasar - mutate state from firebase 9 on boot

I'm using quasar with firebase 9. I'm trying to set the state with actions during the boot of the project. I have data in firebase that I want to load only once and assign to an array in the Vuex state. there might be a way in firebase 8 but I can't solve this problem in the newer version of firebase

    import { getData } from "src/firebase/config";

// load data from packages collection
export const loadPackages = async () => {
  const packages = await getData("packages");

    return packages;
}

// load data from menu collection
export const loadMenu = async () => {
  const packages = await getData("meals-menu");

    return packages;
}

I use the return of each function in the respective vue component but I want to use the return in mutating the vuex state.

any tips?

thank you

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

as a work around solution; try saving data from firebase into localstorage then set vuex state after localstorage is set

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda