Skip to main content

Function: useService

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

Type parameters

NameType
Sextends State
Textends DefaultService<S, T>

Parameters

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

Returns

[S, T]

Defined in

onekijs/packages/onekijs-framework/src/core/useService.ts:9