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
Describe the bug
Tanstack query exports a skipToken symbol which can be used to prevent a query running while waiting for a value to be defined (e.g. from a dependent query) - similar to using enabled but more type safe. This does not work with supabase-cache-helpers and gives a typescript error.
To Reproduce
import{useQuery}from'@supabase-cache-helpers/postgrest-react-query';import{skipToken}from'@tanstack/react-query';constsupabase=supabaseBrowserClient();constaccountId: string|undefined=getAccountId()const{ data }=useQuery(accountId ? myDependentQuery(supabase,accountId) : skipToken,);// No overload matches this call...
Expected behavior
Using skipToken in a query should be possible.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Tanstack query exports a skipToken symbol which can be used to prevent a query running while waiting for a value to be defined (e.g. from a dependent query) - similar to using
enabled
but more type safe. This does not work with supabase-cache-helpers and gives a typescript error.To Reproduce
Expected behavior
Using skipToken in a query should be possible.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: