Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

70
Vistas
Why react router's BrowserRouter does not fill native window.location properties?

I'm using react-router's BrowserRouter for appliying routing in my react app.

However, I realized that when the URL changes, that change is not reflected in window.location.

For example when my app is loaded, the window.location.search is empty. When I click on tickets menu to go to example.com/tickets the window.location.search is still empty.

Is there a configuration to force react-router to fill window.location properties?

7 months ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos