Wait for client to initliaze on startup deep link
Summary: We were incorrectly assuming a client did not support a plugin because it was not fully initialized. This issue was only apparant on start deep links Reviewed By: mweststrate Differential Revision: D40477503 fbshipit-source-id: 5fd9db765f559b8eb80cc3680ee694dfd2cf9a37
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2bde26391d
commit
c6dbfc87a4
@@ -143,6 +143,11 @@ export async function handleOpenPluginDeeplink(
|
||||
return;
|
||||
}
|
||||
console.debug('[deeplink] Cleared device plugin support check.');
|
||||
|
||||
await client?.initializationPromise;
|
||||
|
||||
console.debug('[deeplink] Client initialized');
|
||||
|
||||
if (!isDevicePlugin && !client!.plugins.has(params.pluginId)) {
|
||||
await Dialog.alert({
|
||||
title,
|
||||
|
||||
Reference in New Issue
Block a user