Skip to content

Commit

Permalink
Don’t allow pollInterval on query
Browse files Browse the repository at this point in the history
Makes issues like apollographql#1406 less likely.
  • Loading branch information
calebmer authored Mar 17, 2017
1 parent b126c94 commit a2345a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/QueryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,10 @@ export class QueryManager {
throw new Error('returnPartialData option only supported on watchQuery.');
}

if ((options as any).pollInterval) {
throw new Error('pollInterval option only supported on watchQuery.');
}

if ((options as any).forceFetch) {
throw new Error('forceFetch option is no longer supported since Apollo Client 1.0. Use fetchPolicy instead.');
}
Expand Down

0 comments on commit a2345a7

Please sign in to comment.