mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
changes in reference/docs/guides
This commit is contained in:
1 parent
32fbe02228
commit
da8b80fa7e
1 file changed
+2
-2
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user