Use Firestore in React with zero effort, using MobX 🤘
Collection.minimizeUpdatesoption to prevent multiple updates when starting real-time updates on a Collection. This happens when some of the query results are loally cached, causing Firestore to fire multiple
onSnapshotevents. Enabling this option causes Firestorter to skip/debounce the first local snapshot, in favor of the full result received slightly later from the cloud.
Fixed unneccessary re-start of real-time updates on
Collectionwhen the query changes.
Removed obsolete firestore snapshot fields
isLoadingproperty (better name + isLoading also causes realtime updates to become active, fixes #18)
isActive(active still supported but shows deprecation warning)
Collection.addstill writing to firestore when schema didn't validate
Document.updatethrowing exception when schema was used.
Added new method for defining queries using an observed function (e.g.
col.query = (ref) => ref.orderBy('text', 'asc')). This is now the new recommended way for defining queries.
Added support for MobX 4 (for MobX 3.x, use 0.9.3 or lower)
Added donation link and sponsor acknowledgements
Added CHANGELOG.md & release-notes badge
Added code coverage
Added additional unit tests
Removed firebase as a peer dependency
Various updates to docs
Fixed Promise not rejected on
Collection.add, when invalid doc-data was specified
Added lots of unit tests
Path observations are now immediate
Added ability to specify reactive-functions to the ref, path and query property of Document & Collection
Collection.activeproperty which indicates whether real-time updating is current active
Added unit tests for Document & Collection (wip)
The realtimeUpdating property has been renamed to mode (realtimeUpdating has been deprecated and will be removed soon)
Many documentation updates