MCPcopy Create free account
hub / github.com/awkweb/react-supabase / useClient

Function useClient

src/hooks/use-client.ts:6–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { Context } from '../context'
5
6export function useClient(): SupabaseClient {
7 const client = useContext(Context)
8 if (client === undefined)
9 throw Error('No client has been specified using Provider.')
10 return client
11}

Callers 12

useSignInFunction · 0.90
useAuthStateChangeFunction · 0.90
useSignOutFunction · 0.90
useSignUpFunction · 0.90
useResetPasswordFunction · 0.90
useDeleteFunction · 0.90
useSelectFunction · 0.90
useUpdateFunction · 0.90
useInsertFunction · 0.90
useUpsertFunction · 0.90
useSubscriptionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected