This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
after calling AngularFireOfflineDatabase.list() it keeps being subscribed to firebase events even when list ref is no longer in use. #30
Closed
Description
not sure how this should look like yet I can see setupList
(and setupObject
) to call ref.subscribe()
and never unsubscribe
, also the listCache
(and objectCache
) seem to keep cached values forever. As a result I can see AngularFireOfflineDatabase.setList()
is being called for each internal and external list modification. Probably there should be at least some optional strategies available to automatically/manually clear cache entries and unsubscribe from firebase updates.
Other thing is that for any list modification (i.e. for child_added
) always all list is being processed which is probably a candidate for separate issue.