Fix deeplinks when flipper desktop is closed
Summary: Previously opening a deep link would always fail with flipper thinking the plugin did not exist. In this diff we wait for plugins to be initialized Differential Revision: D40142275 fbshipit-source-id: 7894fc60a6df57e13395e05263b0905847b11ad3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d4c4b9ebc4
commit
71ed2f6e25
@@ -317,6 +317,7 @@ async function verifyPluginStatus(
|
||||
pluginId: string,
|
||||
title: string,
|
||||
): Promise<[boolean, PluginStatus]> {
|
||||
await waitFor(store, (state) => state.plugins.initialized);
|
||||
// make sure we have marketplace plugin data present
|
||||
if (!isTest() && !store.getState().plugins.marketplacePlugins.length) {
|
||||
// plugins not yet fetched
|
||||
|
||||
Reference in New Issue
Block a user