From 30d49f7133247ce97a970b83eb58cf033e19facb Mon Sep 17 00:00:00 2001 From: Yordis Prieto Lazo Date: Fri, 13 Nov 2020 00:51:52 -0500 Subject: [PATCH] fix hook deps --- examples/with-apollo/lib/apolloClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-apollo/lib/apolloClient.js b/examples/with-apollo/lib/apolloClient.js index 7bcf2153c4592..ba5f223cae330 100644 --- a/examples/with-apollo/lib/apolloClient.js +++ b/examples/with-apollo/lib/apolloClient.js @@ -56,7 +56,7 @@ export function addApolloState(client, pageProps) { export function useApollo(pageProps) { const store = useMemo( () => initializeApollo(pageProps[APOLLO_STATE_PROP_NAME]), - [pageProps] + [pageProps[APOLLO_STATE_PROP_NAME]] ) return store }