-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Node.js, React Native
How frequently does the bug occur?
Always
Description
const realmFileBehavior = { type: OpenRealmBehaviorType.DownloadBeforeOpen, timeOut: 1000, timeOutBehavior: "openLocalRealm", // open the local realm if the download has not completed within 1000ms };
Using this realm file configuration does not work when the user is offline. When the app is launched the RealmProvider is stuck on the fallback component, e.g. a loading screen, and the user is not authenticated. So for some reason the time out does not work.
When using OpenRealmBehaviorType.OpenImmediately it works fine. See also Issue 5385.
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
Use this existing file behavior config:
const realmFileBehavior = { type: OpenRealmBehaviorType.DownloadBeforeOpen, timeOut: 1000, timeOutBehavior: "openLocalRealm", // open the local realm if the download has not completed within 1000ms };
Run app in flight mode. I can reproduce this only on a real device.
Version
"@realm/react": "0.4.3","realm": "11.8.0"
What services are you using?
Both Atlas Device Sync and Atlas App Services
Are you using encryption?
– select –
Platform OS and version(s)
MacOS Ventura
Build environment
Which debugger for React Native: ..
Cocoapods version
No response