Skip to content

Commit cc9fd67

Browse files
committed
clear query.currentRefetchInterval on cleanup
1 parent 10b6e52 commit cc9fd67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/useBaseQuery.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export function useBaseQuery(queryKey, queryVariables, queryFn, config = {}) {
107107
return () => {
108108
clearInterval(query.refetchIntervalId)
109109
delete query.refetchIntervalId
110+
delete query.currentRefetchInterval
110111
}
111112
}
112113
}, [config.refetchInterval, config.refetchIntervalInBackground, refetch])

0 commit comments

Comments
 (0)