Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1664

Adding a flexible sync subscription with the return value of `useQuery` breaks RN reloading

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      To reproduce

      1. Load the example app
      2. Press "R" in the React Native console
      3. The app will reload
      4. Press "R" again
      5. The app will get stuck at "Downloading 100%" and can't be reloaded again
      6. Open AppSync.tsx and change line 22 mutableSubs.add(result); to mutableSubs.add(realm.objects('Task'));
      7. Restart the app and try pressing "R" a few times – the app will reload successfully every time

            Assignee:
            tom.duncalf@mongodb.com Tom Duncalf (Inactive)
            Reporter:
            tom.duncalf@mongodb.com Tom Duncalf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: