Skip to content

Commit e929ef3

Browse files
authoredJan 29, 2022
Refetch should not happen if no active subscribers
Fixes reduxjs#1530
1 parent d5b0eb5 commit e929ef3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/toolkit/src/query/core/buildMiddleware/windowEventHandling.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const build: SubMiddlewareBuilder = ({
3737

3838
if (
3939
!subscriptionSubState ||
40+
Object.keys(subscriptionSubState).length === 0 ||
4041
!querySubState ||
4142
querySubState.status === QueryStatus.uninitialized
4243
)

0 commit comments

Comments
 (0)