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
inland-turquoiseOP•6mo ago
The code hasn't changed and with vinxi everything worked correctly,
jolly-crimson•6mo ago
is this when running the dev server or when running the prod build?+
inland-turquoiseOP•6mo ago
@Manuel Schiller Dev server
jolly-crimson•6mo ago
a reproducer would be helpful.
inland-turquoiseOP•6mo ago
@Manuel Schiller I'll work on that. Anything in your experience that could cause this?
jolly-crimson•6mo ago
not directly. seems like the query is lost somehow along the chain
inland-turquoiseOP•6mo ago
@Manuel Schiller is there a quick repo I can clone and add on top of by any chance?
jolly-crimson•6mo 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...
inland-turquoiseOP•6mo ago
Awesome thanks ❤️
inland-turquoiseOP•6mo 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 ...
inland-turquoiseOP•6mo ago
🤞
multiple-amethyst•5mo 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
jolly-crimson•5mo 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
...