Skip to content

Commit

Permalink
fixup! fix: clear cache timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Ellis committed May 16, 2020
1 parent 8a4dd2c commit 47628eb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/queryCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,10 +520,7 @@ export function makeQueryCache() {
query.clear = () => {
clearTimeout(query.staleTimeout)
clearTimeout(query.cacheTimeout)
if (query.cancelQueries) {
query.cancelQueries()
}
query.cancelled = cancelledError
query.cancel()
}

return query
Expand Down

0 comments on commit 47628eb

Please sign in to comment.