Skip to content

Commit 1f42179

Browse files
kahirokunnAkryum
authored andcommitted
fix: onResetStore expect Promise (#220)
1 parent 43343d8 commit 1f42179

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

graphql-client/src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ export function createApolloClient ({
169169

170170
if (onCacheInit) {
171171
onCacheInit(cache)
172-
apolloClient.onResetStore(() => {
173-
onCacheInit(cache)
174-
})
172+
apolloClient.onResetStore(() => onCacheInit(cache))
175173
}
176174

177175
return {

0 commit comments

Comments
 (0)