Skip to main content

Function: usePostPutPatch

Const usePostPutPatch<T>(url, method, options?): [(body: Partial<T>, extraOptions?: AppExtraFetchOptions<T>) => Promise<void>, boolean]

Type parameters

NameType
Tany

Parameters

NameType
urlstring
methodFetchMethod
optionsAppFetchOptions<T>

Returns

[(body: Partial<T>, extraOptions?: AppExtraFetchOptions<T>) => Promise<void>, boolean]

Defined in

onekijs/packages/onekijs-framework/src/fetch/usePostPutPatch.ts:11