#How can I reload a page on navigate?
1 messages · Page 1 of 1 (latest)
I believe that’s a job for window.location.reload() to specifically reload the page. But for the purpose of media device disabling surely there’s a better way. You’d also be able to accomplish the reload by leaving react routers navigate and changing route with window.location.href (I think it’s href)
But useNavigste ties in closely with react router so it’s able to stop your browser from “loading” again when you navigate. If you calll the native api (window.location) it’s not integrated well with react router so it forces the user to “reload” on the new route