WaffleophagusW
Convex Community9mo ago
27 replies
Waffleophagus

Logging into new user "doesn't work" on react native since I store state?

As mentioned in #"Upgrading" Anonymous accounts to "real" accounts with email I start all users out with an anonomyous account then letting them auth into a real account. I am trying to store some of that in a local store since its react native and my goal is to give an offline experience for my users, but the thing I've been banging my head against for the past like 3 evenings (yay off time projects) is that when a user auths with an email, it doesn't take effect immediately, and I end up having to exit and come back to the app, doing that solves it perfectly. Is it a race condition? What is the simplest way to handle this? I'll happily share anything I have to get this working.
Was this page helpful?