The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: update doc for react user management tutorial
Danyl Fernandes5263e68e4bad
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-react.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-react.mdxindex 303ff7f583f..07a44ff52e1 100644--- a/apps/docs/pages/guides/getting-started/tutorials/with-react.mdx+++ b/apps/docs/pages/guides/getting-started/tutorials/with-react.mdx@@ -158,7 +158,7 @@ export default function Account({ session }) {getProfile()}, [session])- async function updateProfile(event) {+ async function updateProfile(event, avatarUrl) {event.preventDefault()setLoading(true)@@ -168,7 +168,7 @@ export default function Account({ session }) {id: user.id,username,website,- avatar_url,+ avatarUrl ?? avatar_url,updated_at: new Date(),}@@ -378,8 +378,7 @@ return (url={avatar_url}size={150}onUpload={(event, url) => {- setAvatarUrl(url)- updateProfile(event)+ updateProfile(event, url)}}/>{/* ... */}