UseObjectOptions
Defined in: types.ts:317
Object hook options.
Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”
optionalapi:string
Defined in: types.ts:319
API endpoint
optionalbody:Record<string,unknown>
Defined in: types.ts:327
Request body extras
headers?
Section titled “headers?”
optionalheaders:Record<string,string>
Defined in: types.ts:325
Request headers
initialValue?
Section titled “initialValue?”
optionalinitialValue:Partial<T>
Defined in: types.ts:323
Initial object value
onError()?
Section titled “onError()?”
optionalonError: (error) =>void
Defined in: types.ts:331
Called on error
Parameters
Section titled “Parameters”Error
Returns
Section titled “Returns”void
onFinish()?
Section titled “onFinish()?”
optionalonFinish: (event) =>void
Defined in: types.ts:329
Called on finish
Parameters
Section titled “Parameters”Error | undefined
object
Section titled “object”T | undefined
Returns
Section titled “Returns”void
schema?
Section titled “schema?”
optionalschema:unknown
Defined in: types.ts:321
Schema for validation