|
|
@@ -17,11 +17,6 @@ declare var APP;
|
|
17
|
17
|
*/
|
|
18
|
18
|
export function appWillMount(app: Object) {
|
|
19
|
19
|
return (dispatch: Dispatch<any>) => {
|
|
20
|
|
- dispatch({
|
|
21
|
|
- type: APP_WILL_MOUNT,
|
|
22
|
|
- app
|
|
23
|
|
- });
|
|
24
|
|
-
|
|
25
|
20
|
// TODO There was a redux action creator appInit which I did not like
|
|
26
|
21
|
// because we already had the redux action creator appWillMount and,
|
|
27
|
22
|
// respectively, the redux action APP_WILL_MOUNT. So I set out to remove
|
|
|
@@ -30,6 +25,11 @@ export function appWillMount(app: Object) {
|
|
30
|
25
|
// API module into its own feature yet so we're bound to work on that in
|
|
31
|
26
|
// the future.
|
|
32
|
27
|
typeof APP === 'object' && APP.API.init();
|
|
|
28
|
+
|
|
|
29
|
+ dispatch({
|
|
|
30
|
+ type: APP_WILL_MOUNT,
|
|
|
31
|
+ app
|
|
|
32
|
+ });
|
|
33
|
33
|
};
|
|
34
|
34
|
}
|
|
35
|
35
|
|