Skip to content

Commit bd3f236

Browse files
committed
Go
1 parent a3fc17a commit bd3f236

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • examples/react/apollo-client-defer/src

examples/react/apollo-client-defer/src/main.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom/client';
33
import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client';
4+
import { GraphQL17Alpha2Handler } from '@apollo/client/incremental';
45
import { ApolloProvider } from '@apollo/client/react';
56
import App from './App';
67

@@ -9,6 +10,7 @@ const client = new ApolloClient({
910
uri: 'https://graphql.org/graphql/',
1011
}),
1112
cache: new InMemoryCache(),
13+
incrementalHandler: new GraphQL17Alpha2Handler(),
1214
});
1315

1416
const root = ReactDOM.createRoot(document.getElementById('app') as HTMLElement);

0 commit comments

Comments
 (0)