benten
05/21/2022, 12:19 AM// create a query and use all the postgres query options
const query = useSupabase().from('site').select('*')
// pass that query to useQuery and get automatic SWR revalidation on it.
const { data: queryData } = useQuery(query)
useSupabase() returns the supabase client.
They use this to construct queries, but doesn't it make an API call as well?Needle
05/21/2022, 12:19 AMgaryaustin
05/21/2022, 1:00 AMNeedle
05/21/2022, 1:00 AMbenten
05/21/2022, 6:12 AM