Skip to main content

Function: useGet

Const useGet<T>(url?, options?): [result: T, loading: boolean, refresh: function]

Type parameters

NameTypeDescription
Tanythe expected type of the response sent by the server.

Parameters

NameType
url?null | string
optionsUseGetOptions<T>

Returns

[result: T, loading: boolean, refresh: function]

Defined in

onekijs/packages/onekijs-framework/src/fetch/useGet.ts:19