Skip to content

Commit 60af3a9

Browse files
committed
fix reducerPath for query definitions
1 parent d5b0eb5 commit 60af3a9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/toolkit/src/query/endpointDefinitions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,10 @@ export type EndpointBuilder<
390390
*/
391391
query<ResultType, QueryArg>(
392392
definition: OmitFromUnion<
393-
QueryDefinition<QueryArg, BaseQuery, TagTypes, ResultType>,
393+
QueryDefinition<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath>,
394394
'type'
395395
>
396-
): QueryDefinition<QueryArg, BaseQuery, TagTypes, ResultType>
396+
): QueryDefinition<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath>
397397
/**
398398
* An endpoint definition that alters data on the server or will possibly invalidate the cache.
399399
*

packages/toolkit/src/query/tests/buildSelector.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ describe('buildSelector', () => {
4242
const store = configureStore({
4343
reducer: {
4444
[exampleApi.reducerPath]: exampleApi.reducer,
45+
other: () => 1,
4546
},
4647
})
4748

0 commit comments

Comments
 (0)