h3 `getValidatedQuery` not working after devinxi?
I'm about to create a repro when I have some time but I was wondering: is
getValidatedQuery
(to parse query params), which is now apparently from h3
supposed to work the same as vinxi's one?
I'm on:
and running:
gives me an empty object ([Object: null prototype] {}
to be precise) inside a:
route with:
as a URL.13 Replies
exotic-emeraldOP•3mo ago
The code hasn't changed and with vinxi everything worked correctly,
genetic-orange•3mo ago
is this when running the dev server or when running the prod build?+
exotic-emeraldOP•3mo ago
@Manuel Schiller Dev server
genetic-orange•3mo ago
a reproducer would be helpful.
exotic-emeraldOP•3mo ago
@Manuel Schiller I'll work on that. Anything in your experience that could cause this?
genetic-orange•3mo ago
not directly. seems like the query is lost somehow along the chain
exotic-emeraldOP•3mo ago
@Manuel Schiller is there a quick repo I can clone and add on top of by any chance?
genetic-orange•3mo ago
you can gitpick as shown here: https://tanstack.com/start/latest/docs/framework/react/quick-start
Quick Start | TanStack Start React Docs
Impatient? If you're impatient, you can clone and run the example right away with the following commands: bash npx gitpick TanStack/router/tree/main/examples/react/start-basic start-basic cd start-bas...
exotic-emeraldOP•3mo ago
Awesome thanks ❤️
exotic-emeraldOP•3mo ago
@Manuel Schiller Opened a bug report here: https://github.com/TanStack/router/issues/4536
GitHub
getValidatedQuery
always returns {}
· Issue #4536 · TanStack/...Which project does this relate to? Router Describe the bug The new getValidatedQuery from TSS keeps returning no query params (and/or works differently from how the equivalent function worked with ...
exotic-emeraldOP•3mo ago
🤞
rising-crimson•2mo ago
would be awesome if we can know if this is being fixed or not, currently we planning to move to the newer version, but h3 utils not working in api routes, is stopping us from doing that
genetic-orange•2mo ago
fixed that in https://github.com/TanStack/router/releases/tag/v1.125.6
GitHub
Release v1.125.6 · TanStack/router
Version 1.125.6 - 7/7/25, 6:14 PM
Changes
Fix
correct url in dev server (#4593) (ba6f0ba) by Manuel Schiller
set component return type to any by default (#4592) (7ff52af) by Manuel Schiller
Docs
...