Methods
applyWebchatMiddleware()
Returns the Redux middlewares required for Webchat to work properly.
GenericStoreEnhancer
Example
export const store = createStore(
reducers,
compose(
applyWebchatMiddleware()
)
);
WebchatReducer(state, action) → {AppState}
Returns Flex WebChat reducer. Combine with custom Redux store.
Parameters:
Name | Type | Description |
---|---|---|
state |
AppState | current state |
action |
any | Redux action |
Flex WebChat state
AppState
Example
const reducers = combineReducers({
flex: WebchatReducer,
app: appReducer
});