vaadin / router

Small and powerful client-side router for Web Components. Framework-agnostic.
https://vaadin.com/router
Apache License 2.0
415 stars 51 forks source link

onBeforeEnter not called after page refresh #883

Open shotor opened 5 months ago

shotor commented 5 months ago

Versions: @vaadin/router: 1.7.5 lit: 3.1.3 vite: 5.2.9 typescript: 5.2.9

Demo: https://stackblitz.com/~/github.com/shotor/vaadin-vite-lit Repo: https://github.com/shotor/vaadin-vite-lit

I added vaadin to a new vite + lit project. It works fine mostly, except I lose route parameters on refresh. Am I doing something wrong? Or is this a vaadin problem or vite problem?

To reproduce:

npm install
npm run dev