The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Soft remove the missing `useUser` hook
Paul Copplestone45b45d03e2b6
diff --git a/examples/with-nextjs/pages/index.js b/examples/with-nextjs/pages/index.jsindex d0067c0cdb2..25cf57abf14 100644--- a/examples/with-nextjs/pages/index.js+++ b/examples/with-nextjs/pages/index.js@@ -1,6 +1,6 @@import useSWR from 'swr'import Link from 'next/link'-import { useUser } from '../utils/auth/useUser'+// import { useUser } from '../utils/auth/useUser'const fetcher = (url, token) =>fetch(url, {@@ -10,7 +10,7 @@ const fetcher = (url, token) =>}).then((res) => res.json())const Index = () => {- const { user, logout } = useUser()+ // const { user, logout } = useUser()const { data, error } = useSWR(user ? ['/api/getFood', user.token] : null,fetcher