Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Converting circular structure to JSON #70

Open
Ross-Rawlins opened this issue Sep 1, 2017 · 1 comment
Open

Converting circular structure to JSON #70

Ross-Rawlins opened this issue Sep 1, 2017 · 1 comment

Comments

@Ross-Rawlins
Copy link

Ross-Rawlins commented Sep 1, 2017

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant