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

169
Visualizações
Does NextJS on demand revalidation works for Next/link?

https://nextjs.org/docs/basic-features/data-fetching/incremental-static-regeneration#on-demand-revalidation

From NextJS docs, it seems that on demand cache revalidation should work fine with regular <a> tags and also when you refresh the page.

But will it work when the user clicks on <a> tag that has been rendered using Link from 'next/link' ?

Those links are client-side rendered and it's not clear to me if this is going to work:

  1. User visits home
  2. User clicks and visits Post1 link
  3. Post1 gets revalidated on the server
  4. User goes back home
  5. User clicks and visits Post1 link again

Assuming all those links were rendered using Link from next/link.

Will they see the new version of Post1 on step 5? Or will they still the same page they saw on step 2?

about 4 years ago · Santiago Gelvez
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