Class PullstateSingleton<S>
Methods
createAsyncAction
- createAsyncAction<A, R, T>(action: TPullstateAsyncAction<A, R, T, S>, options?: ICreateAsyncActionOptions<A, R, T, S>): IOCreateAsyncActionOutput<A, R, T>
-
Type parameters
-
A = any
-
R = any
-
T: string = string
Parameters
-
action: TPullstateAsyncAction<A, R, T, S>
-
Default value options: ICreateAsyncActionOptions<A, R, T, S> = {}
Returns IOCreateAsyncActionOutput<A, R, T>
createAsyncActionDirect
- createAsyncActionDirect<A, R>(action: (args: A) => Promise<R>, options?: ICreateAsyncActionOptions<A, R, string, S>): IOCreateAsyncActionOutput<A, R>
-
Type parameters
-
A: any = any
-
R: any = any
Parameters
-
action: (args: A) => Promise<R>
-
-
Parameters
Returns Promise<R>
-
Default value options: ICreateAsyncActionOptions<A, R, string, S> = {}
Returns IOCreateAsyncActionOutput<A, R>
instantiate
-
Parameters
-
Default value __namedParameters: { hydrateSnapshot: undefined | IPullstateSnapshot; ssr: boolean } = {}