-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collection Change Listener stops listening until next event emits and then proceeds to stop listening #4708
Comments
I believe it is a duplicate (or a variant) of #2655 |
I have come across this issue as well but there are some differences:
but it is also possible it might be a variant... |
@NqCompiler I see you mentioned using |
I can't use the chrome debugger (Error: This version of Realm JS doesn't support the legacy Chrome Debugger. Please use Flipper instead. see #4364 ) So I assume I am already running in on "non-debug" mode (?), if not can I toggle it via the RN "In-App Developer Menu"? |
@NqCompiler That is correct that the chrome debugger is not supported, I just wanted to rule that out. Without seeing some sort of sample code (ideally something that reproduces the issue), it is difficult for me to determine what is going wrong. Can you possibly provide a reproduction repo or some sample code I can use to invoke this issue? Also I would like to recommend using our package |
I managed to rewrite our code and the error is now #2655 For your information: Thanks for the help |
How frequently does the bug occur?
Sometimes
Description
Our application starts initializing realm when mounting the main screen.
It starts listening to ~5 different collections.
Initially everything seems to be working fine.
However, after for example, refreshing/reloading the app (debug mode), only the initial callbacks are called for the collection listeners but they don't react to any changes.
If I make emit any event (a realm.write transaction or net-info) the change listeners are reacting again but proceed to stop listening.
If I call the initialization of realm two times - directly after mount & then couple of seconds later again (closing the previously initialized realm instance) - the problem occures less often.
I tried different devices and with mobiles on better hardware the problem occurs more often.
This happens also in PRODUCTION.
Maybe it has something to do with react-native itself, but maybe you can lead me to the root of the problem as I experience this bug only when using realm.
Stacktrace & log output
No response
Can you reproduce the bug?
Yes, sometimes
Reproduction Steps
No response
Version
10.20.0-beta.3, 10.20.0-beta.5
What SDK flavour are you using?
Atlas App Services (auth, functions, etc.)
Are you using encryption?
No, not using encryption
Platform OS and version(s)
ANDROID
Build environment
"react-native": "0.67.4"
"realm": "^10.20.0-beta.5"
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: