Skip to content

Commit aa4cad5

Browse files
GeorchWEskiMojo14
authored andcommitted
Apply suggestion
Co-authored-by: Ben Durrant <ben.j.durrant@gmail.com>
1 parent 2bca4e0 commit aa4cad5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ export const buildInvalidationByTagsHandler: InternalHandlerBuilder = ({
3939
)
4040

4141
const isQueryEnd = isAnyOf(
42-
isFulfilled(mutationThunk),
43-
isRejected(mutationThunk),
44-
isFulfilled(queryThunk),
45-
isRejected(queryThunk)
42+
isFulfilled(mutationThunk, queryThunk),
43+
isRejected(mutationThunk, queryThunk)
4644
)
4745

4846
let pendingTagInvalidations: FullTagDescription<string>[] = []

0 commit comments

Comments
 (0)