anyone got example with React (possible tanstack r...
# ory-selfhosting
h
anyone got example with React (possible tanstack router) on how to keep state updated with login info, e.g. using
refresh=true
? Right now, I only using
useState<>
for my login information, everything i e.g. do a change and hit cmd+r (mac) to reload my page, then i'm "logged out" even though the session cookie is still set and alive 🙂 I am not using the
useEffect()
that runs all the time as middleware, i've been told by many frontend devs now that
useEffect()
isn't good to use. All my user data, is also in
state
so that is ofc also "lost" when reloading 🙂