Skip to content
Discussion options

You must be logged in to vote

If you query is not disabled, it means it has at least one enabled observer :)

isActive(): boolean {
return this.observers.some((observer) => observer.options.enabled !== false)
}
isDisabled(): boolean {
return this.getObserversCount() > 0 && !this.isActive()
}

The devtools would show you how many observers there are, and if the query is fully disabled or not. I can't help much more without seeing the code in question.

This is turning into a discussion, so I'll move it there.

Replies: 8 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@nicolassanmar
Comment options

@TkDodo
Comment options

Answer selected by nicolassanmar
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@TkDodo
Comment options

@ftzi
Comment options

@TkDodo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #4761 on January 05, 2023 15:18.