-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
2 - S (<= 1 week)
-
6078
How frequently does the bug occur?
Always
Description
As title, I am implementing Bubbles API for Android.
In this case, my index.js look like:
AppRegistry.registerComponent(appName, () => App)
AppRegistry.registerComponent("BubbleApp", () => AppChatBubble)
Note that: App and AppChatBubble include RealmProvider
Now is the problem, when close the AppChatBubble instance, it's seem the realm closed for total app, then I got this error Cannot access realm that has been closed on my App
Let see the AppChatBubble content
Then App content:
Stacktrace & log output
Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
I am using Realm react to create RealContext
Can you reproduce the bug?
Always
Reproduction Steps
implementing Android bubble
implement RealmProvider
Close once instance
Version
"realm": "^11.9.0",
What services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Android > 10
Build environment
Which debugger for React Native: ..
"@realm/react": "^0.3.2", "react": "^18.2.0", "react-native": "^0.71.8",
Cocoapods version
error on Android
- is duplicated by
-
RJS-2489 `RealmProvider` should have an option like `keepRealmOpen`
- Closed