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

Converting circular structure to JSON #70

Open Ross-Rawlins opened 7 years ago

Ross-Rawlins commented 7 years ago

When I try to do an online query it works fine but when the page refreshes and tries the same call again this error comes up and fails. I am having to do a query with a dynamic child value.

`this.filterSubject = new Subject();
        this.eventsObservable = this.afoDatabase.list('/events', {
            query: {
                orderByChild: this.filterSubject || 'all',
                equalTo:1
            }});
         this.filterSubject.next('all')   
        this.eventsObservable.subscribe((events: [EventDetails]) => {
            this.events = events;
        })`

Is there a better way for me to run this query to stop this issue coming up.

Ross-Rawlins commented 6 years ago

This has been up for some time and want to check if there is a way t resolve this.