File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/toolkit/src/query/react Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,7 @@ import { useStableQueryArgs } from './useSerializedStableValue'
6565import { useShallowStableValue } from './useShallowStableValue'
6666import type { InfiniteQueryDirection } from '../core/apiState'
6767import { isInfiniteQueryDefinition } from '../endpointDefinitions'
68- import {
69- StartInfiniteQueryActionCreatorOptions ,
70- StartInfiniteQueryActionCreator ,
71- } from '../core/buildInitiate'
68+ import { StartInfiniteQueryActionCreator } from '../core/buildInitiate'
7269
7370// Copy-pasted from React-Redux
7471const canUseDOM = ( ) =>
@@ -1647,7 +1644,8 @@ export function buildHooks<Definitions extends EndpointDefinitions>({
16471644 useEffect ( ( ) => {
16481645 return ( ) => {
16491646 promiseRef . current ?. unsubscribe ?.( )
1650- promiseRef . current = undefined
1647+ // eslint-disable-next-line react-hooks/exhaustive-deps
1648+ ; ( promiseRef . current as any ) = undefined
16511649 }
16521650 } , [ promiseRef ] )
16531651 }
You can’t perform that action at this time.
0 commit comments