Skip to content

Commit 66dd9bb

Browse files
committed
Remove arg from the UseMutationTrigger docs signature
1 parent b47b6fc commit 66dd9bb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

query-old/docs/api/created-api/hooks.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,6 @@ type UseMutationStateOptions<Definition> = {
103103
type UseMutationTrigger<Definition> = (
104104
arg: ArgTypeFrom<Definition>
105105
) => Promise<{ data: ResultTypeFrom<Definition> } | { error: BaseQueryError | SerializedError }> & {
106-
arg: {
107-
endpointName: string; // The name of the given endpoint for the mutation
108-
originalArgs: ArgTypeFrom<Definition>; // Arguments passed to the mutation
109-
track?: boolean; // Whether the mutation is being tracked in the store
110-
startedTimeStamp: number; // Timestamp for when the mutation was initiated
111-
};
112106
requestId: string; // A string generated by RTK Query
113107
abort: () => void; // A method to cancel the mutation promise
114108
unwrap: () => Promise<ResultTypeFrom<Definition>>; // A method to unwrap the mutation call and provide the raw response/error

0 commit comments

Comments
 (0)