-
Notifications
You must be signed in to change notification settings - Fork 585
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
the result from useQuery
is not usable in adding subscriptions.
#4507
Comments
➤ On 2022-03-24, Kenneth Geisshirt commented: We need to include FLX support as a requirement for sync support of Realm React: https://jira.mongodb.org/browse/RJS-1517 |
It seems that the way React Native implements ES6 This function should handle This works as expected on Node (which is obviously a different runtime) and on Hermes. |
… properly with JSC. This change can be reverted once we go to v11. Fixes #4507
Closing in favour of waiting for const people = useQuery(realm.objects('Person'));
// ...
realm.subscriptions.update(subs => {
subs.add(people); // this will error
}); becomes const results = realm.objects('Person');
const people = useQuery(people);
// ...
realm.subscriptions.update(subs => {
subs.add(results); // no error as we are passing in the Realm.Results instance directly
}); |
… properly with JSC. This change can be reverted once we go to v11. Fixes #4507
We have decided to implement this workaround |
No description provided.
The text was updated successfully, but these errors were encountered: