hey <@498057949541826571> can you check on this
a
hey @rp_st can you check on this
r
Hey! You need to check if session.loading is true or not before. If it’s true, you can return null, else check for the doesSessionExist boolean
a
vs code says doesSessionExist does not exists
Copy code
const 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;
r
Huh.. that’s weird. Maybe restart vacode? Does ts compile work though?
a
its strange. Though its complaining but working fine 😅
r
Yeaaa. Vs code issues