Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(api): enable the external api before the first redux update

Leonard Kimd7e0aa3f610e
diff --git a/react/features/base/app/actions.js b/react/features/base/app/actions.js
index f9d0615097..7d8fe0cf44 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<any>) => {
- 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
+ });
};
}