Upgraded multiple dependencies across the project, including @types/node to ^22.5.1 and @supabase/supabase-js to ^2.45.3. This change also includes updates to react-related types and various other packages to their latest versions to maintain compatibility and leverage new features.
9 lines
260 B
TypeScript
9 lines
260 B
TypeScript
import { useMemo } from 'react';
|
|
|
|
import { getSupabaseBrowserClient } from '../clients/browser-client';
|
|
import { Database } from '../database.types';
|
|
|
|
export function useSupabase<Db = Database>() {
|
|
return useMemo(() => getSupabaseBrowserClient<Db>(), []);
|
|
}
|