Skip to content
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

Array containing empty objects being returned when querying list of subscriptions #5996

Closed
njmulsqb opened this issue Jul 17, 2023 · 4 comments

Comments

@njmulsqb
Copy link

njmulsqb commented Jul 17, 2023

How frequently does the bug occur?

Always

Description

Hi,
I am using realm 11.8.0 and @realm/react 0.4.3 in react native expo app, when I try to console.log list of subscriptions using

  const allSubscriptions = realm.subscriptions;
console.log(allSubscriptions

// returns {"0": {}, "1": {}, "2": {}, "3": {}}

I cant see any further details of the subscriptions, even if I add any more subscriptions it will also show up as empty object in this array

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

Just list the subscriptions

Version

11.8.0

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

@takameyer
Copy link
Contributor

@njmulsqb In v11 the subscriptions are c++ objects and it appears the enumeration wasn't implemented (which would just output an empty object in console). This should be enumerated and visible in v12. If you want to try it out, you can use the latest release candidate (npm install realm@next)

@njmulsqb
Copy link
Author

I am using it on Node 18.0.0, with npm version 9.6.6, I tried updating the realm using npm update realm but it didnt update the package.json file. Could this be an issue?

@kneth
Copy link
Contributor

kneth commented Aug 14, 2023

@njmulsqb You can try to remove package-lock.json and do npm install [email protected].

@kneth
Copy link
Contributor

kneth commented Oct 31, 2023

I am closing the issue due to no reply back. Please create a new issue if you have new observations to share.

@kneth kneth closed this as completed Oct 31, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants