We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfb19ba commit 20bc81bCopy full SHA for 20bc81b
packages/toolkit/src/query/core/buildMiddleware/polling.ts
@@ -75,20 +75,6 @@ export const buildPollingHandler: InternalHandlerBuilder = ({
75
}
76
77
78
- function getCacheEntrySubscriptions(
79
- queryCacheKey: QueryCacheKey,
80
- api: SubMiddlewareApi,
81
- ) {
82
- const state = api.getState()[reducerPath]
83
- const querySubState = state.queries[queryCacheKey]
84
- const subscriptions = currentSubscriptions.get(queryCacheKey)
85
-
86
- if (!querySubState || querySubState.status === QueryStatus.uninitialized)
87
- return
88
89
- return subscriptions
90
- }
91
92
function startNextPoll(
93
{ queryCacheKey }: QuerySubstateIdentifier,
94
api: SubMiddlewareApi,
0 commit comments