megaphone icon We're improving your developer experience.
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.

Repository 

https://github.com/mattermost/mattermost-webapp/tree/master/packages/mattermost-redux

Channel 

https://community.mattermost.com/core/channels/redux

Folder structure 

mattermost-redux consists of the following folders:

  • src contains all 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 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 test is located on the same folder of the file being tested.

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.