Skip to main content
Version: v9.0.0

OptimisticOperationCommitArgs

Argument of .commit() .​

data

  • the target's data as it is now

response / request

  • the mutation's successful response and the mutation request

Import
import { OptimisticOperationCommitArgs } from "@hyper-fetch/core"

Preview​

type OptimisticOperationCommitArgs<Data,Mutation> = {
data: Data;
request: Mutation;
response: ResponseSuccessType<ExtractResponseType<Mutation>, ExtractAdapterType<Mutation>>;
}

Structure​

OptimisticOperationCommitArgs
NameTypeDescription
data
Data
request
Mutation
response
ResponseSuccessType<ExtractResponseType<Mutation>, ExtractAdapterType<Mutation>>