Skip to main content

Class: PluginModule

core/plugin.PluginModule

Implements

  • Service

Constructors

constructor

new PluginModule()

Properties

[storeKey]

Optional Readonly [storeKey]: Store<any, AnyAction>

Implementation of

Service.__@storeKey@107761

Defined in

packages/reactant-module/src/core/plugin.ts:15


enhancer

Optional enhancer: Function

inject enhancer for Redux

Defined in

packages/reactant-module/src/core/plugin.ts:32


middleware

Optional middleware: Middleware<{}, any, Dispatch<AnyAction>>

inject middleware for Redux

Defined in

packages/reactant-module/src/core/plugin.ts:27


provider

Optional provider: FunctionComponent<any>

Define a React Provider for the current PluginModule

Defined in

packages/reactant-module/src/core/plugin.ts:52

Methods

afterCombineRootReducers

Optional afterCombineRootReducers(rootReducer): Reducer<any, AnyAction>

As hook after combine rootReducers

Parameters

NameType
rootReducerReducer<any, AnyAction>

Returns

Reducer<any, AnyAction>

Defined in

packages/reactant-module/src/core/plugin.ts:47


afterCreateStore

Optional afterCreateStore(store): Store<any, AnyAction>

As hook after createStore

Parameters

NameType
storeStore<any, AnyAction>

Returns

Store<any, AnyAction>

Defined in

packages/reactant-module/src/core/plugin.ts:37


beforeCombineRootReducers

Optional beforeCombineRootReducers(reducers): ReducersMapObject<any, Action<any>>

As hook before combine rootReducers

Parameters

NameType
reducersReducersMapObject<any, Action<any>>

Returns

ReducersMapObject<any, Action<any>>

Defined in

packages/reactant-module/src/core/plugin.ts:42


preloadedStateHandler

Optional preloadedStateHandler(preloadedState): Object

preloaded state handler for Redux

Parameters

NameType
preloadedStateObject

Returns

Object

Defined in

packages/reactant-module/src/core/plugin.ts:20