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

159
Visualizações
Change the content in Nuxt.js middleware

Is there any way to mutate the content of the response (e.g. page) in the middleware?

I should also mention that I don't want to push a new route (change the URL).

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

0

Mutating the content of a page in a middleware (in some Express-y way I guess) while staying on the same route is not something that you usually do on the front-end. Never saw it and it's a pretty good anti-pattern IMO.

You can make ugly conditionals by wrapping your whole template tho.

Best way would be to receive a different payload from the backend and adapt to it in your front-end.

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