Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

changes in reference/docs/guides

Ollie Hallidayda8b80fa7ee6
diff --git a/apps/reference/docs/guides/with-ionic-react.mdx b/apps/reference/docs/guides/with-ionic-react.mdx
index 7ca3cb9ced7..c7591af5a73 100644
--- a/apps/reference/docs/guides/with-ionic-react.mdx
+++ b/apps/reference/docs/guides/with-ionic-react.mdx
@@ -316,13 +316,13 @@ import { Session } from '@supabase/supabase-js'
setupIonicReact()
const App: React.FC = () => {
- const [session, setSession] = (useState < Session) | (null > null)
+ const [session, setSession] = useState<Session>(null)
useEffect(() => {
setSession(supabase.auth.session())
supabase.auth.onAuthStateChange((_event, session) => {
setSession(session)
})
- }, [session])
+ }, [])
return (
<IonApp>
<IonReactRouter>