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

164
Vistas
React Router Component not re rendering when changing child routes

I have set the Routes as below:

<Routes>
    <Route path="/" element={<Home />} />
    <Route path="/example" element={<Example />}>
        <Route path=":id" element={<Another />} />
    </Route>
</Routes>

My Problem is when I visit /example/1 from /example page directly. The content of <Another /> renders correctly. But if I try to visit for example /example/1 while I am on /example/2 the URL changes on the browser but the content of the page does not change. I am using useParms() hook in <Another /> component to generate dynamic content.

How can I solve this issue?

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