Closed vishalbalaji closed 2 months ago
The lazy option was added for createQuery
and createInfiniteQuery
in #52, but not for createQueries
. I am trying to figure out what the best way to set the query data for each of these queries would be and will implement it in a future update.
This option would disable the query by default and return a function to resolve/enable them. This resolve function will also optionally take in
Promise<TData>
which will populate the query cache before enabling, effectively simplifying the process of streaming the query data from the server(#22). Basically, this would look something like this: