The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
'use client'
import { useEffect, type EffectCallback } from 'react'
/**
* runs an effect once on mount, with its cleanup on unmount, the escape hatch for one-time
* sync with an external system and derive state or use event handlers everywhere else
*/
export function useMountEffect(effect: EffectCallback): void {
// eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(effect, [])
}