Skip to content

Commit 9be8d39

Browse files
committed
fix: invalidate instead of reset queries
1 parent 3aee1d1 commit 9be8d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-ghostmaker/src/useGhostChain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const useTargetAutoInvalidate = (target: object, queryKey: QueryKey) => {
117117
targetHashes.set(joinedQueryKey, targetHash);
118118

119119
if (needsRefresh) {
120-
queryClient.resetQueries({
120+
queryClient.invalidateQueries({
121121
queryKey,
122122
});
123123
}

0 commit comments

Comments
 (0)