Skip to content

Commit 9e6304d

Browse files
author
ben.durrant
committed
annotate return for clarity
1 parent 5610950 commit 9e6304d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/toolkit/src/query/core/buildMiddleware/batchActions.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ export const buildBatchedActionsHandler: InternalHandlerBuilder<
6969
return false
7070
}
7171

72-
return (action, mwApi) => {
72+
return (
73+
action,
74+
mwApi
75+
): [actionShouldContinue: boolean, hasSubscription: boolean] => {
7376
if (!previousSubscriptions) {
7477
// Initialize it the first time this handler runs
7578
previousSubscriptions = JSON.parse(

0 commit comments

Comments
 (0)