Namespace

Store

Store

Members

# constant applyWebchatMiddleware

Returns the Redux middlewares required for Webchat to work properly.
Example
export const store = createStore(
  reducers,
  compose(
      applyWebchatMiddleware()
  )
);

Methods

# 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
});