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

@@ -177,9 +177,7 @@ async function exitActions(
);
outputAndExit(payload);
} else {
const {serializedString, errorArray} = await exportStore(
store.getState(),
);
const {serializedString, errorArray} = await exportStore(store);
errorArray.forEach(console.error);
outputAndExit(serializedString);
}
@@ -256,7 +254,7 @@ async function startFlipper(userArguments: UserArguments) {
errorAndExit(e);
});
} else {
exportStore(store.getState())
exportStore(store)
.then(({serializedString}) => {
outputAndExit(serializedString);
})