Skip to content

Commit

Permalink
Use invariant.warn to forecast initQueryManager deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Mar 6, 2019
1 parent b0a9e4c commit 1e740be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/apollo-client/src/ApolloClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,10 @@ export default class ApolloClient<TCacheShape> implements DataProxy {
* This initializes the query manager that tracks queries and the cache
*/
public initQueryManager(): QueryManager<TCacheShape> {
invariant.warn(
'Calling the initQueryManager method is no longer necessary, ' +
'and it will be removed from ApolloClient in version 3.0.',
);
return this.queryManager;
}

Expand Down

0 comments on commit 1e740be

Please sign in to comment.