Currently, tanstack's useQuery is always passed false or true for enabled. But if a user hasn't provided any explicit enablement, either using disableQuery or queryOptions, then the QueryClient's default options should be used, which requires making sure enabled is unset, not an explicit boolean value.
Currently, tanstack's
useQuery
is always passedfalse
ortrue
forenabled
. But if a user hasn't provided any explicit enablement, either usingdisableQuery
orqueryOptions
, then theQueryClient
's default options should be used, which requires making sureenabled
is unset, not an explicit boolean value.