-
Notifications
You must be signed in to change notification settings - Fork 584
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
Realm syncing incomplete data #6031
Comments
@njmulsqb Thanks for submitting this issue and sorry you are facing issues. Can you provide an example of the data that isn't showing up? What specific subscription is failing in the provided case? |
@takameyer Thanks for the response, groups subscription is failing to sync properly here. Here's the schema of the group susbcription
The first three entries are only getting synced initially |
@njmulsqb Can you verify that the
reflects the issue you are having? Are there missing groupIds? |
Ah, P.s. does realm has any official slack channel or discord server to discuss problems? The documentation is not so great and realm community is still maturing so it becomes challenging to solve realm related issues. |
@njmulsqb I think it's more of a concurrency issue, since the connections are being subscribed to and read from in the same callback. What I would recommend is to break up your
GitHub is our primary. We do also have a community forum which is also being monitored by us and was designed with discussions in mind. |
Thanks a bunch mate @takameyer |
@njmulsqb Cheers and happy coding! |
How frequently does the bug occur?
Description
Hi, I am using realm on react native expo.
The issue is that when I start the app, there are some subscriptions which loads the data, but the data loaded is incomplete, and when I insert some data into the same collection, realm then syncs all the data including the newly inserted one.
Why isn't it syncing all the data at first place?
Here are some code snippets to help with troubleshooting
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
Just do something that wipes the current session i.e. log out, remove realm files from explorer, remove all subscriptions and reinitialize, and you'll be having incomplete data.
Add some data to realm using realm.write and whole collection will be synced then.
Version
Realm 11.9.0, @realm/react 0.5.1
What services are you using?
Both Atlas Device Sync and Atlas App Services
Are you using encryption?
No
Platform OS and version(s)
React Native Expo 48.0.0
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: