Realtime sync of class objects via channels is too complex for now. Ideal it must be mix of complex queries (like LiveQueries from parse) with fast background sync from Firebase.
Something like this:
// object is created and it fulfills the filter
instance.class('CLASS_NAME').list(filter).on('create', (object) => {
console.log("new filter object");
});
// an existing object which fulfills the filter you subscribe is updated
instance.class('CLASS_NAME').list(filter).on('update', (object, prevObject) => {
console.log("filter object changed");
});
// 'enter', 'leave', 'delete' events from parse
// killing feature for technologies like react
// like 'value' event in Firebase
// newObjectList contains all filtered objects after background sync
instance.class('CLASS_NAME').list(filter).on('list_update', (newObjectList) => {
console.log("list changed");
});
Realtime sync of class objects via channels is too complex for now. Ideal it must be mix of complex queries (like
LiveQueries
fromparse
) with fast background sync fromFirebase
.Something like this: