Process queues before exporting plugins

Summary: This diff makes sure that pending queues for plugins that are selected are processed before making a flipper export.

Reviewed By: jknoxville

Differential Revision: D19194211

fbshipit-source-id: e076375889450407e7f94384051719f3bbc415ee
This commit is contained in:
Michel Weststrate
2020-01-02 07:12:06 -08:00
committed by Facebook Github Bot
parent 0494a84d98
commit b8e752412e
8 changed files with 222 additions and 131 deletions

View File

@@ -10,6 +10,7 @@
import {createStore} from 'redux';
import reducers, {Actions, State as StoreState} from './reducers/index';
import {stateSanitizer} from './utils/reduxDevToolsConfig';
import isProduction from './utils/isProduction';
export const store = createStore<StoreState, Actions, any, any>(
reducers,
@@ -20,3 +21,9 @@ export const store = createStore<StoreState, Actions, any, any>(
})
: undefined,
);
if (!isProduction()) {
// For debugging purposes only
// @ts-ignore
window.flipperStore = store;
}