Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefetchQuery force (v2) #593

Closed
jackmellis opened this issue Jun 19, 2020 · 1 comment
Closed

prefetchQuery force (v2) #593

jackmellis opened this issue Jun 19, 2020 · 1 comment

Comments

@jackmellis
Copy link
Contributor

I just wanted to clarify prefetchQuery. According to the latest release docs:

prefetchQuery's force option has been removed. When you call prefetchQuery, the queryFn will always be called, regardless if the query is stale or not.

But in the next codebase:

if (force || query.state.isStale) {
  await query.fetch()
}
@jackmellis
Copy link
Contributor Author

nevermind I just read this 🤦 #585 (comment)

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

No branches or pull requests

1 participant