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.
not sure how this should look like yet I can see
setupList
(andsetupObject
) to callref.subscribe()
and neverunsubscribe
, also thelistCache
(andobjectCache
) seem to keep cached values forever. As a result I can seeAngularFireOfflineDatabase.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.