Fix initial main menu not loading

Summary: Fixes a regression (D20679687) of the main menu not loading immediately after application start

Reviewed By: passy, priteshrnandgaonkar

Differential Revision: D21227817

fbshipit-source-id: 37e4ddfcb73de3eac04d6162a3e028864d3e9e7f
This commit is contained in:
Michel Weststrate
2020-04-24 10:42:31 -07:00
committed by Facebook GitHub Bot
parent 4d58563168
commit d142369e9d
3 changed files with 31 additions and 5 deletions

View File

@@ -68,7 +68,7 @@ export default (store: Store, _logger: Logger) => {
sideEffect(
store,
{name: 'setupMenuBar', throttleMs: 100},
{name: 'setupMenuBar', throttleMs: 1000, fireImmediately: true},
(state) => state.plugins,
(plugins, store) => {
setupMenuBar(