1e3534e169
The intention is to show people the correlation between things, in this case, understand the usage of the same key from the props and the rehydration. Hopefully, this change will bring value as it has done with some Juniors already.
12 lines
315 B
JavaScript
12 lines
315 B
JavaScript
import { ApolloProvider } from '@apollo/client'
|
|
import { useApollo } from '../lib/apolloClient'
|
|
|
|
export default function App({ Component, pageProps }) {
|
|
const apolloClient = useApollo(pageProps)
|
|
|
|
return (
|
|
<ApolloProvider client={apolloClient}>
|
|
<Component {...pageProps} />
|
|
</ApolloProvider>
|
|
)
|
|
}
|