Skip to content

Commit

Permalink
fix: queries without a query key are not added to cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Jul 1, 2020
1 parent cecf521 commit e167e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/queryCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export function makeQueryCache({ frozen = isServer, defaultConfig } = {}) {
query.scheduleGarbageCollection()
}

if (!frozen) {
if (!frozen && queryHash) {
queryCache.queries[queryHash] = query

if (isServer) {
Expand Down

0 comments on commit e167e8b

Please sign in to comment.