Logging user after register crashes app in Expo/React Native #6146
Labels
O-Community
SDK-Use:Sync
T-Bug
Waiting-For-Reporter
Waiting for more information from the reporter before we can proceed
How frequently does the bug occur?
Always
Description
I'm registering new users in an Expo app. After register I'm trying to login user, but I'm getting error:
WARN Possible Unhandled Promise Rejection (id: 2): Error: Broken Promise Error: Broken Promise at Realm_close (native)
And
{{ ERROR [Error: Timed out: Realm could not be downloaded in the allocated time: 30000 ms.]}}
When i reload app - it turns out that user is logged in. That is happening all the time.
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
This is link directly to signup screen that is producing problem.
First handleSignup fires, and after that useEffect tries to login user:
https://github.com/rafalnawojczyk/CubeRivals/blob/master/src/screens/SignupScreen.tsx
Version
12.1
What services are you using?
Both Atlas Device Sync and Atlas App Services
Are you using encryption?
Yes
Platform OS and version(s)
Android
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: