Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

83
Vistas
Is this the correct way to use useSWR with getServerSideProps in next js?

This is the code sandbox example of how I'm using SWR with getServerSideProps: https://codesandbox.io/s/useswr-with-getserversideprops-nextjs-9u1gp?file=/containers/PostContainer/index.js

Here is github repo for same: repo

What I want to achieve is on the post/[post] page the meta tags will be dynamic coming from the backend & will be users specific that's why I'm using getServerSideProps instead of getStaticProps, the above code is working fine but when I see the terminal on clicking a post it's calling the API 3 times & when I again click the same post API is being called 2 times is this normal behaviour?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda