Class: AsyncBindService<T>
Type parameters
Name |
---|
T |
Hierarchy
DefaultService
<AsyncBindState
>↳
AsyncBindService
Constructors
constructor
• new AsyncBindService<T
>()
Type parameters
Name |
---|
T |
Inherited from
Properties
[combinedReducers]
• [combinedReducers]: (state
: any
, action
: any
) => any
Type declaration
▸ (state
, action
): any
Parameters
Name | Type |
---|---|
state | any |
action | any |
Returns
any
Inherited from
DefaultService.[combinedReducers]
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:63
[dispatch]
• [dispatch]: any
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:62
[inReducer]
• [inReducer]: boolean
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:64
[reducers]
• [reducers]: any
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:59
[sagas]
• [sagas]: any
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:61
[types]
• [types]: any
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:60
state
• state: AsyncBindState
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:66
Methods
[create]
▸ [create](initialState
): void
Parameters
Name | Type |
---|---|
initialState | AsyncBindState |
Returns
void
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:69
[run]
▸ [run](): void
Returns
void
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:208
[stop]
▸ [stop](): void
Returns
void
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:226
error
▸ error(error
): void
Parameters
Name | Type |
---|---|
error | Error |
Returns
void
Defined in
onekijs/packages/onekijs-framework/src/form/AsyncBindService.ts:24
execute
▸ execute(asyncMethod
, dependencies
): Generator
<void
| Generator
<void
| ForkEffect
<SagaReturnType
<AnyFunction
<T
>>>, Task
, Task
>, void
, Task
>
Parameters
Name | Type |
---|---|
asyncMethod | AnyFunction <T > |
dependencies | any [] |
Returns
Generator
<void
| Generator
<void
| ForkEffect
<SagaReturnType
<AnyFunction
<T
>>>, Task
, Task
>, void
, Task
>
Defined in
onekijs/packages/onekijs-framework/src/form/AsyncBindService.ts:31
forkAsyncBind
▸ forkAsyncBind(asyncMethod
, dependencies
): Generator
<void
| ForkEffect
<SagaReturnType
<AnyFunction
<T
>>>, Task
, Task
>
Parameters
Name | Type |
---|---|
asyncMethod | AnyFunction <T > |
dependencies | any [] |
Returns
Generator
<void
| ForkEffect
<SagaReturnType
<AnyFunction
<T
>>>, Task
, Task
>
Defined in
onekijs/packages/onekijs-framework/src/form/AsyncBindService.ts:46
setLoading
▸ setLoading(isLoading
): void
Parameters
Name | Type |
---|---|
isLoading | boolean |
Returns
void
Defined in
onekijs/packages/onekijs-framework/src/form/AsyncBindService.ts:12
success
▸ success(result
): void
Parameters
Name | Type |
---|---|
result | T |
Returns
void
Defined in
onekijs/packages/onekijs-framework/src/form/AsyncBindService.ts:17