This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ApolloClient, ApolloProvider, NormalizedCacheObject } from '@apollo/client'; | |
import { NextPage, NextPageContext } from 'next'; | |
import App, { AppContext } from 'next/app'; | |
import Head from 'next/head'; | |
import React from 'react'; | |
// On the client, we store the Apollo Client in the following variable. | |
// This prevents the client from reinitializing between page transitions. | |
let globalApolloClient: ApolloClient<NormalizedCacheObject> | null = null; | |
let hasSetInitialStore = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |