navigate does not work on Vite development mode

This issue has been tracked since 2021-05-22.

I initialized the project using

npm init @vitejs/app

And choose a Svetle + Typescript project.

I am doing a simple navigate("/url", { replace: true }) after user interaction. The URL changes, however, the component on the page stays the same. This only happens when using Vite's development mode.

After building, it works fine. Any pointers as to what might be the cause? I'm creating an issue on Vite's repository too.

sidharthramesh wrote this answer on 2021-05-22

#200 Kinda fixes this, but still would be nice to not have to override vite defaults.

More Details About Repo
Owner Name EmilTholin
Repo Name svelte-routing
Full Name EmilTholin/svelte-routing
Language JavaScript
Created Date 2017-11-28
Updated Date 2022-12-03
Star Count 1711
Watcher Count 21
Fork Count 151
Issue Count 59


Issue Title Created Date Updated Date