Skip to content

Commit

Permalink
fix: onResetStore expect Promise (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahirokunn authored and Akryum committed Oct 3, 2019
1 parent 43343d8 commit 1f42179
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions graphql-client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,7 @@ export function createApolloClient ({

if (onCacheInit) {
onCacheInit(cache)
apolloClient.onResetStore(() => {
onCacheInit(cache)
})
apolloClient.onResetStore(() => onCacheInit(cache))
}

return {
Expand Down

0 comments on commit 1f42179

Please sign in to comment.