Skip to main content

Function: usePost

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

Type parameters

NameType
Tany

Parameters

NameType
urlstring
optionsAppFetchOptions<T>

Returns

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

Defined in

onekijs/packages/onekijs-framework/src/fetch/usePost.ts:4