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

ClientResyncMode.Discard doesn't discard the local changes

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

      I have attached a repro project. To reproduce:

      1. Run ROS locally or update config.json with a cloud url.
      2. `npm install && npm run start`. In the logs you should get an error message that the class `Foo` is not in the schema.
      3. Open Studio and find the newly created realm: `/~/foo`.
      4. Create a new class, called `Foo` with a property.
      5. Run `npm run start` again and observe that the message is now `Foos: 0`
      6. Delete the Realm from Studio
      7. Run `npm run start` again and observe that the message is still `Foos: 0` - that means that the schema was somehow recreated, even though the expected outcome in the client reset case would be that the local file is discarded.

            Assignee:
            kenneth.geisshirt@mongodb.com Kenneth Geisshirt (Inactive)
            Reporter:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: