Open gfrancischini opened 3 weeks ago
➤ PM Bot commented:
Jira ticket: RJS-2794
@gfrancischini Thank you for reporting.
I believe that we should extend @realm/react
with an option not to shallow the exceptions from Realm.open()
. We can either rethrow the exception or call the onError
callback (if defined).
How frequently does the bug occur?
Always
Description
Check the following line:
https://github.com/realm/realm-js/blob/91de9446242a3dc7aaaf640925af360b5d91a7d2/packages/realm-react/src/RealmProvider.tsx#L140
It is calling the console.error directly. This way we cannot handle this error on user device.
We have configured the application to only open the realm for the first time after DownloadBeforeOpen.
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
Version
realm@12.6.2
What services are you using?
Atlas Device Sync
Are you using encryption?
No
Platform OS and version(s)
Android/iOS All
Build environment
Which debugger for React Native: ..
Cocoapods version
No response