File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/toolkit/src/query/core/buildMiddleware Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export function buildMiddleware<
116
116
res = internalProbeResult
117
117
}
118
118
119
- if ( ! ! mwApi . getState ( ) [ reducerPath ] ) {
119
+ if ( mwApi . getState ( ) [ reducerPath ] ) {
120
120
// Only run these checks if the middleware is registered okay
121
121
122
122
// This looks for actions that aren't specific to the API slice
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export const buildPollingHandler: InternalHandlerBuilder = ({
130
130
let skipPollingIfUnfocused : boolean | undefined = false
131
131
let lowestPollingInterval = Number . POSITIVE_INFINITY
132
132
for ( const key in subscribers ) {
133
- if ( ! ! subscribers [ key ] . pollingInterval ) {
133
+ if ( subscribers [ key ] . pollingInterval ) {
134
134
lowestPollingInterval = Math . min (
135
135
subscribers [ key ] . pollingInterval ! ,
136
136
lowestPollingInterval ,
You can’t perform that action at this time.
0 commit comments