watchForChanges Readonly

watchForChanges: boolean | undefined

If true, open the briefcase readonly and monitor it for changes originating from another connection. When such changes are detected, the default txn will be restarted. The restart occurs only after the next iteration of the backend event loop, and will generate events that reflect the changes from the other connection. This can be useful in contexts where the read-only connection is displaying a view of the contents of the briefcase while another, non-interactive program is adding txns to the briefcase. It may not be reliable if the writable connection is undoing or redoing txns.

@note This cannot be used with cloud-based briefcases.

Defined in

Last Updated: 14 November, 2024