dappsnation / akita-ng-fire

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

Issue 119 #128

Closed fritzschoff closed 4 years ago

fritzschoff commented 4 years ago

Since akita is not removing keys when a new state updates the store, this lead to some issues for akita ng fire. This is not an akita bug, it is by design. Example:

This is why we need to purge the keys. Since in firestore, you only can update whole documents and not single keys. That being said, you want to purge the keys from the store that has been removed for instance. We can't delete a key from an akita store, but we can set them to undefined.

close #119