Skip to content

Commit

Permalink
fix hook deps
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Nov 13, 2020
1 parent a7c986f commit 30d49f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/with-apollo/lib/apolloClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 30d49f7

Please sign in to comment.