Skip to content

Commit

Permalink
refactored disable cache check
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoScheufler committed Jan 25, 2019
1 parent 01152a8 commit b747d93
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ export class Binding extends Delegate {
mutation: this.buildQueryMethods('mutation'),
subscription: this.buildSubscriptionMethods(),
}
if (this.disableCache) {
return methods
if (!this.disableCache) {
methodCache.set(this.schema, methods)
}
methodCache.set(this.schema, methods)
return methods
}

Expand Down

0 comments on commit b747d93

Please sign in to comment.