Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

onBeforeEnter not called after page refresh #883

Open
shotor opened this issue Apr 18, 2024 · 0 comments
Open

onBeforeEnter not called after page refresh #883

shotor opened this issue Apr 18, 2024 · 0 comments

Comments

@shotor
Copy link

shotor commented Apr 18, 2024

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
  • Click on Projects 3, you will see "Projects 3" and a log statement coming from onBeforeEnter
  • Refresh page
  • Now it says projects 0, no log statement coming from onBeforeEnter
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant