You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

middleware.js 383B

123456789101112131415161718
  1. // @flow
  2. import { APP_WILL_MOUNT } from '../base/app';
  3. import { MiddlewareRegistry } from '../base/redux';
  4. import { fetchCustomBrandingData } from './actions';
  5. MiddlewareRegistry.register(store => next => action => {
  6. switch (action.type) {
  7. case APP_WILL_MOUNT: {
  8. store.dispatch(fetchCustomBrandingData());
  9. break;
  10. }
  11. }
  12. return next(action);
  13. });