Edit on GitHub

Mattermost-Redux

mattermost-redux is a library that contains logic for loading and working with data from the Mattermost server. It’s currently used primarily by the Mattermost web app and by some plugins, and it was previously used by the Mattermost mobile app. You can access the repository here, and discuss mattermost-redux in the Redux Mattermost community channel.

Folder structure 

The mattermost-redux project consists of the following folders:

  • src contains all the source code that is compiled and shipped with the library.
    • src/actions contains the Redux actions used by the library. Most of the logic that uses the stored data and contacts the server is located here.
    • src/client contains the JavaScript drivers to communicate with the Mattermost server via HTTP and WebSockets.
    • src/reducers contains the Redux reducers that handle actions and use them to update the stored data.
    • src/selectors contains the selectors used to compute data from the store or to just access it more easily.
    • src/store contains the setup code for the Redux store that can be extended by applications that use this library.
    • src/utils contains utility functions.
  • test contains unit testing utilities. Actual unit tests are located in the same folder as the file being tested. For more information on unit and E2E tests concerning Redux, check out Redux Unit and E2E Testing.

Did you find what you were looking for?

Thank you! We appreciate your feedback.
×

Tell us more

Your feedback helps us improve the Mattermost developer documentation.

Have a feature request? Share it here.

Having issues? Join our Community server.