T
TanStack3mo ago
protestant-coral

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,
},
},
),
);
1 Reply
flat-fuchsia
flat-fuchsia7d ago
Hi there, I don't have enough information to help out here. Can you submit a repro?

Did you find this page helpful?