Skip to content
Discussion options

You must be logged in to vote

prefetchQuery is a side-effectful method that should not be called during render. If you call it in an effect or in an event handler or something like that, you can just add an if statement around it and not call it at all.

So, there is no enabled option on prefetchQuery.

Replies: 1 comment 3 replies

Comment options

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

@TkDodo
Comment options

@waptik
Comment options

Answer selected by waptik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants