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

Document the users obligation to catch when using manual transactions

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      As mentioned on a comment of a different issue, when using manual transactions the user is obligated to surround any code interfacing with the Realm in a try/catch. The user also has the responsibility to react on errors/exceptions - specifically cancelling the transaction if any call to a method on the Realm throws an exception, as the state of the data cannot be guaranteed at this point.

      We should add a notice about this on the online and the "in clode" documentation of the beginTransaction method.

            Assignee:
            kenneth.geisshirt@mongodb.com Kenneth Geisshirt
            Reporter:
            kraen.hansen@mongodb.com Kræn Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: