TanStackT
TanStack7mo ago
1 reply
full-green

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,
                },
            },
        ),
    );
Was this page helpful?