T
TanStack2mo ago
unwilling-turquoise

Query parameter doesn't appear on query

Hello, I have a query parameter called dateFrom as you can see in the code below, but i'm getting a 400 from the backend when I load the page, the request in dev tools is saying the query parameter doesn't exist, could someone be able to explain why this might be happening?
let getLocation = $derived(
createGetLocation(
locId,
{
dateFrom: getDateFrom(timeFrame),
},
{
query: {
enabled: getDateFrom(timeFrame) != null,
},
},
),
);
let getLocation = $derived(
createGetLocation(
locId,
{
dateFrom: getDateFrom(timeFrame),
},
{
query: {
enabled: getDateFrom(timeFrame) != null,
},
},
),
);
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?