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 9e6304d commit 25a0f6fCopy full SHA for 25a0f6f
packages/toolkit/src/query/core/buildMiddleware/index.ts
@@ -40,13 +40,8 @@ export function buildMiddleware<
40
>(`${reducerPath}/invalidateTags`),
41
}
42
43
- const isThisApiSliceAction = (action: Action) => {
44
- return (
45
- !!action &&
46
- typeof action.type === 'string' &&
47
- action.type.startsWith(`${reducerPath}/`)
48
- )
49
- }
+ const isThisApiSliceAction = (action: Action) =>
+ action.type.startsWith(`${reducerPath}/`)
50
51
const handlerBuilders: InternalHandlerBuilder[] = [
52
buildDevCheckHandler,
0 commit comments