diff --git a/react/features/base/app/actions.js b/react/features/base/app/actions.js index f9d061509..7d8fe0cf4 100644 --- a/react/features/base/app/actions.js +++ b/react/features/base/app/actions.js @@ -17,11 +17,6 @@ declare var APP; */ export function appWillMount(app: Object) { return (dispatch: Dispatch) => { - dispatch({ - type: APP_WILL_MOUNT, - app - }); - // TODO There was a redux action creator appInit which I did not like // because we already had the redux action creator appWillMount and, // respectively, the redux action APP_WILL_MOUNT. So I set out to remove @@ -30,6 +25,11 @@ export function appWillMount(app: Object) { // API module into its own feature yet so we're bound to work on that in // the future. typeof APP === 'object' && APP.API.init(); + + dispatch({ + type: APP_WILL_MOUNT, + app + }); }; }