SupabaseS
Supabase12mo ago
patryk

Calling supabaseClient.rpc() does nothing? How to debug?

This is the code:
const { data: userAvailableAccounts } = useQuery({
        queryKey: ['userAccounts'],
        staleTime: Infinity,
        gcTime: 0,
        queryFn: async () => {
            console.log('refetching')
            console.log(supabaseClient)
            const result = await supabaseClient.rpc('get_accounts')
            console.log(result)
        }
    })

And here is the result on a screenshot. As you can see, nothing is being console.logged after calling supabaseClient.rpc('get_accounts'). Actually nothing happens - no data, no error
image.png
Was this page helpful?