mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20:05:06 +03:00
Merge branch 'master' of github.com:supabase/supabase into chore/docs-v2-6
This commit is contained in:
commit
2eb630ca21
2 files changed
+5
-5
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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())
|
||||
setSession(supabase.auth.session())
|
||||
supabase.auth.onAuthStateChange((_event, session) => {
|
||||
setSession(session)
|
||||
})
|
||||
}, [session])
|
||||
}, [])
|
||||
return (
|
||||
<IonApp>
|
||||
<IonReactRouter>
|
||||
|
||||
Reference in new issue
Block a user