Skip to content

Commit c00db9d

Browse files
committed
Rename parameters for onQueryStarted for clarity
1 parent 8f6f018 commit c00db9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ export type QueryLifecycleQueryExtraOptions<
111111
* ```
112112
*/
113113
onQueryStarted?(
114-
arg: QueryArg,
115-
api: QueryLifecycleApi<QueryArg, BaseQuery, ResultType, ReducerPath>,
114+
queryArgument: QueryArg,
115+
queryLifeCycleApi: QueryLifecycleApi<QueryArg, BaseQuery, ResultType, ReducerPath>,
116116
): Promise<void> | void
117117
}
118118

@@ -171,8 +171,8 @@ export type QueryLifecycleMutationExtraOptions<
171171
* ```
172172
*/
173173
onQueryStarted?(
174-
arg: QueryArg,
175-
api: MutationLifecycleApi<QueryArg, BaseQuery, ResultType, ReducerPath>,
174+
queryArgument: QueryArg,
175+
mutationLifeCycleApi: MutationLifecycleApi<QueryArg, BaseQuery, ResultType, ReducerPath>,
176176
): Promise<void> | void
177177
}
178178

0 commit comments

Comments
 (0)