aV
09/25/2022, 2:17 PMrp_st
09/25/2022, 2:53 PMaV
09/25/2022, 2:54 PMaV
09/25/2022, 2:54 PMconst Home = () => {
let session = useSessionContext();
if (session.loading) {
// Session loading is generally very fast, so we do not recommend you to use a loading screen here.
return null;
}
if (session.doesSessionExist) {
return <Dashboard />;
} else {
return <Landing />;
}
};
export default Home;
rp_st
09/25/2022, 2:55 PMaV
09/25/2022, 2:56 PMrp_st
09/25/2022, 2:56 PM