Skip to content

Commit bc37266

Browse files
committed
fix: add status bools to use mutation result
1 parent e42ed2b commit bc37266

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/react/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ export interface UseMutationResult<
9797
data: TData | undefined
9898
error: TError | null
9999
failureCount: number
100+
isError: boolean
101+
isIdle: boolean
102+
isLoading: boolean
100103
isPaused: boolean
104+
isSuccess: boolean
101105
mutate: UseMutateFunction<TData, TError, TVariables, TContext>
102106
mutateAsync: UseMutateAsyncFunction<TData, TError, TVariables, TContext>
103107
reset: () => void

0 commit comments

Comments
 (0)