useUser that looks basically like this Layout so when the user is loading the whole app is just a loading spinner. LayoutuseUser hook makes no sense here because its return is always User | undefined as typescript doesn't know the user is loaded somewhere higher. How do I solve this problem? Checking