Closed tja4472 closed 7 years ago
Hi @tja4472, this should be fixed in version 4.2.2 and looks related to issue #46. Let me know if it's different and still present. Thanks! 👍
Hi @adriancarriger
I'm afraid it's still present.
export class WriteListComponent {
groceries: AfoListObservable<any[]>;
constructor(private afoDatabase: AngularFireOfflineDatabase) {
this.groceries = this.afoDatabase.list('/groceries');
this.groceries.subscribe(x => {
console.log('this.groceries.subscribe', x);
});
}
If you go offline then run the example the subscribe only gets called once.
Does not get called when adding items.
Hi @tja4472, this is now fixed in version 4.2.3. Your code change fixed it! Thank you! 🎉 🎉 🎉
Here is the updated demo which now correctly triggers the .subscribe
for pushes to lists while offline.
Thanks! 👍
Hi everyone, this issue is still there. Am using version 4.3.1. When the app starts offline, nothing displays until I connect to the internet. Thanks alot for any help in advance
internal-list-observable.ts
Replace
with
hth Tim