Closed zhy0216 closed 4 months ago
Indeed it should.
I cannot reproduce. Can you publish a minimal reproduction? I'll re-open then.
Hi @brillout, if you can go to minimal example in this repo, and use pageContext.routeParams
in the +Page. Then open dev tool in browser then you can see the following errors.
It's because the page doesn't have any route parameters. That said, the error is misleading and should be improved. Labeling this as bug.
pageContext.routeParams
is now always passed regardless of whether the page has a route parameter.
on doc it mentioned it should: https://vike.dev/passToClient#default