We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3fc17a commit bd3f236Copy full SHA for bd3f236
1 file changed
examples/react/apollo-client-defer/src/main.tsx
@@ -1,6 +1,7 @@
1
import React from 'react';
2
import ReactDOM from 'react-dom/client';
3
import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client';
4
+import { GraphQL17Alpha2Handler } from '@apollo/client/incremental';
5
import { ApolloProvider } from '@apollo/client/react';
6
import App from './App';
7
@@ -9,6 +10,7 @@ const client = new ApolloClient({
9
10
uri: 'https://graphql.org/graphql/',
11
}),
12
cache: new InMemoryCache(),
13
+ incrementalHandler: new GraphQL17Alpha2Handler(),
14
});
15
16
const root = ReactDOM.createRoot(document.getElementById('app') as HTMLElement);
0 commit comments