awwx / meteor-offline-data

Meteor offline data project.
MIT License
111 stars 9 forks source link

Non-strict Meteor.Collection compatibility mode #13

Open awwx opened 11 years ago

awwx commented 11 years ago

The offline-data package is designed to provide a consistent view of data across browser windows even while offline. The cost is incompatibility with the Meteor.Collection API; for example, updates made to a collection don't appear immediately as they do with the local data in a Meteor.Collection but instead only appear after the conclusion of a database transaction (which will be in a future tick of the event loop).

However we may not care about strong consistency sometimes:

A compatibility mode that relaxed the consistency requirements could provide an offline collection that could be plugged into code written for a standard Meteor.Collection.