vikejs/vike

All `+route` are triggered

rtritto opened this issue · 3 comments

Description

When you navigate on a page, all route hooks are triggered.

Reproduction

  1. git clone https://github.com/rtritto/template-vike-solid-daisyui.git

  2. cd template-vike-solid-daisyui

  3. git checkout bug-trigger-route

  4. yarn

  5. yarn dev

  6. Navigate to http://localhost:3000

  7. Check logs:

    route testroute1
    route testroute2

Using filesystem routing, where can I validate route parameters?

Edit: I used validation in +data hook