adriancarriger / angularfire2-offline

🔌 A simple wrapper for AngularFire2 to read and write to Firebase while offline, even after a complete refresh.
https://angularfire2-offline.firebaseapp.com/
MIT License
207 stars 48 forks source link

Cant query the same node twice #74

Open Ross-Rawlins opened 7 years ago

Ross-Rawlins commented 7 years ago

I need to query the same node (/bookings) with two completely different queries and one is temporary and one is live while I am on the page. I keep getting a circular JSON error cause the second instantiation of the node is picking up the cached query of the first implementation. Is this a bug or how can I do this?

Ross-Rawlins commented 7 years ago

So after more investigation what have to ask is how do you reuse the same path on teh same page. I have a filter that changes the paths. I cant use a subject so I have to re init a list. I cant do this as it generates the above error. Am I supposed to check the list cache to see if a item has been used already and somehow access that observable?