Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Fix deeplinks when flipper desktop is closed
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Luke De Feo authored and facebook-github-bot committed Oct 7, 2022
1 parent d4c4b9e commit 71ed2f6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71ed2f6

Please sign in to comment.