navigate('/home') to redirect back to the home page, the HomePage receives an old version of user which causes a redirect back to the SignupCompletionPage again. It looks like the me user doesn't get invalidated/updated on time, causing a stale consumption. I've noticed that if I call useAuth() before calling navigate('/home') this fixes the issue, but it seems to be a workaround more than a clean solution.
Join the Discord to ask follow-up questions and connect with the community
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.
4,603 Members
Join