You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to debug my useTransactionQuery() never making a fetch request, regardless of cache settings. On inspection, turns out it wraps useQuery with a prepare and all refetch options set to false. So I tested useQuery with these options, and it never fetches either.
Yes, in hindsight it is relying on the suspense option. A $refetch() should be invoked on the first render with skip and suspense disabled. I'll make a PR soon and you may test again with the canary version there.
Very excited by this library - thank you!
I was trying to debug my
useTransactionQuery()
never making a fetch request, regardless of cache settings. On inspection, turns out it wrapsuseQuery
with aprepare
and allrefetch
options set to false. So I testeduseQuery
with these options, and it never fetches either.Please see sandbox for example:
https://codesandbox.io/p/sandbox/d4tw43
(I've replaced fetcher with a console.log("..."), which never fires.)
I should expect both examples to do an initial fetch, right?
The text was updated successfully, but these errors were encountered: