Skip to content

Commit e68b170

Browse files
committed
chore: spread rest before properties
1 parent bbe8e9a commit e68b170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/toolkit/src/query/core/buildInitiate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ You must add the middleware for RTK-Query to function correctly!`,
312312
})
313313

314314
const thunk = queryThunk({
315+
...rest,
315316
type: 'query',
316317
subscribe,
317318
forceRefetch: forceRefetch,
@@ -320,7 +321,6 @@ You must add the middleware for RTK-Query to function correctly!`,
320321
originalArgs: arg,
321322
queryCacheKey,
322323
[forceQueryFnSymbol]: forceQueryFn,
323-
...rest
324324
})
325325
const selector = (
326326
api.endpoints[endpointName] as ApiEndpointQuery<any, any>

0 commit comments

Comments
 (0)