Skip to main content

Function: useLocalService

Const useLocalService<S, T>(ctor, initialState): [S, T]

Type parameters

NameType
Sextends State
Textends DefaultLocalService<S, T>

Parameters

NameType
ctorClass<T>
initialStateS | () => S

Returns

[S, T]

Defined in

onekijs/packages/onekijs-framework/src/app/useLocalService.ts:8