dappsnation / akita-ng-fire

Akita ❤️ Angular 🔥 Firebase
MIT License
131 stars 27 forks source link

query selectAll() not triggered on adding new document for subcollections #203

Closed neelz040 closed 3 years ago

neelz040 commented 3 years ago

I noticed that for sub collections, when adding a new document it does not trigger the query subscription selectAll(). This results in that the frontend is not updated properly.

In the sub collection service I use:

  get path(): string {
    const id = this.routerQuery.getParams().id;
    return `parent/${id}/collection`;
  }

In the component I do the following:

this.service.sync().subscribe();
this.subCollectionDocs$ = this.query.selectAll();

For root collections where the path is simply @StoreConfig({ name: 'collection' }) everything works as expected.

I am using "akita-ng-fire": "^4.3.3" and "firebase": "^8.0.1".

fritzschoff commented 3 years ago

Hey, thanks for the report. Will have a look in the upcoming days

neelz040 commented 3 years ago

So, not sure what happend yesterday but it appears to be working as expected today.

I will do some further testing and will get back to you.

fritzschoff commented 3 years ago

Nice. Let me know the results

fritzschoff commented 3 years ago

couldn't find any unusual. Will close this issue