File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import type { ApolloLink } from "../../link/core/index.js";
1010import type { Resolvers } from "../../core/index.js" ;
1111import type { ApolloCache } from "../../cache/index.js" ;
1212import type { DevtoolsOptions } from "../../core/ApolloClient.js" ;
13+ import { invariant } from "../../utilities/globals/index.js" ;
1314
1415export interface MockedProviderProps < TSerializedCache = { } > {
1516 mocks ?: ReadonlyArray < MockedResponse < any , any > > ;
@@ -69,6 +70,14 @@ export class MockedProvider extends React.Component<
6970 showWarnings,
7071 connectToDevTools = false ,
7172 } = this . props ;
73+ if ( __DEV__ ) {
74+ if ( "connectToDevTools" in this . props ) {
75+ invariant . warn (
76+ "`connectToDevTools` is deprecated and will be removed in Apollo Client 4.0. Please use `devtools.enabled` instead."
77+ ) ;
78+ }
79+ }
80+
7281 const client = new ApolloClient ( {
7382 cache : cache || new Cache ( { addTypename } ) ,
7483 defaultOptions,
You can’t perform that action at this time.
0 commit comments