Move local plugin discovery to dispatcher/redux store
Summary: In order to have update notifications, this must live outside the UI component, but it also gives some additional benefits like better testability of previously effectful UI. Reviewed By: jknoxville Differential Revision: D18173166 fbshipit-source-id: 1cacb6c7893423a7920a6620dfb76e631caba101
This commit is contained in:
committed by
Facebook Github Bot
parent
42a77094f4
commit
432bb1b00a
@@ -16,6 +16,7 @@ import server from './server';
|
||||
import notifications from './notifications';
|
||||
import plugins from './plugins';
|
||||
import user from './user';
|
||||
import pluginManager from './pluginManager';
|
||||
|
||||
import {Logger} from '../fb-interfaces/Logger';
|
||||
import {Store} from '../reducers/index';
|
||||
@@ -33,6 +34,7 @@ export default function(store: Store, logger: Logger): () => Promise<void> {
|
||||
notifications,
|
||||
plugins,
|
||||
user,
|
||||
pluginManager,
|
||||
].filter(notNull);
|
||||
const globalCleanup = dispatchers
|
||||
.map(dispatcher => dispatcher(store, logger))
|
||||
|
||||
Reference in New Issue
Block a user