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

116
Visualizações
Vue - Preload dynamic components

In vue, one can render dynamic components by this:
<keep-alive> <component v-bind:is="currentTabComponent"></component> </keep-alive>
If components are A,B,C and currentTabComponent = A, component A will be rendered first and will be kept alive. Then upon clicking other components, B and C will render eventually and all components will be kept alive.
My question is how to render them such a way, where they all will be alive just after rendering instead of only the first one. I've tried mount and before mount lifecycle hooks but they doesn't work.
To summarise, If I assume keep alive is an array under the hood, default behaviour is: keepalive[A] , then keepalive[A,B] at last keepalive [A,B,C]
I want it to be like this at the start: keepalive[A,B,C].

about 4 years ago · Juan Pablo Isaza
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