Reload plugins with updated sources

Reviewed By: lblasa

Differential Revision: D39540173

fbshipit-source-id: 65f5d0f0a325d6ca3ed5e1213e689490c6b650b2
This commit is contained in:
Andrey Goncharov
2022-09-15 10:02:19 -07:00
committed by Facebook GitHub Bot
parent d3d2e189d0
commit 6b3298a29e
2 changed files with 47 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ import pluginMarketplace from './pluginMarketplace';
import pluginDownloads from './pluginDownloads';
import info from '../utils/info';
import pluginChangeListener from './pluginsChangeListener';
import pluginsSourceUpdateListener from './pluginsSourceUpdateListener';
import {Logger} from 'flipper-common';
import {Store} from '../reducers/index';
@@ -40,6 +41,7 @@ export default function (store: Store, logger: Logger): () => Promise<void> {
pluginDownloads,
info,
pluginChangeListener,
pluginsSourceUpdateListener,
].filter(notNull);
const globalCleanup = dispatchers
.map((dispatcher) => dispatcher(store, logger))