UseSubmitOptionsType
import { UseSubmitOptionsType } from "@hyper-fetch/react"
Description
Defined in hooks/use-submit/use-submit.types.ts:15
Preview
type UseSubmitOptionsType<T> = { bounce?: boolean; deepCompare?: boolean | typeof isEqual; dependencyTracking?: boolean; disabled?: boolean; initialData?: NullableType<Partial<ExtractAdapterReturnType<T>>> } & ({ bounceTime?: number; bounceType?: debounce } | { bounceTime?: number; bounceTimeout?: number; bounceType: throttle });
Structure
{
bounce: boolean;
deepCompare: boolean | typeof isEqual;
dependencyTracking: boolean;
disabled: boolean;
initialData: T | NegativeTypes;
...params2: {bounceTime:number,bounceType:debounce} | {bounceTime:number,bounceTimeout:number,bounceType:throttle};
}