From 9bc9b53017e7d544f8e77da475470eb924cb7235 Mon Sep 17 00:00:00 2001 From: Lukas Kurucz Date: Fri, 10 Feb 2023 01:53:20 -0800 Subject: [PATCH] Add more details into supportsMethod usage. (#4365) Summary: ## Changelog Pull Request resolved: https://github.com/facebook/flipper/pull/4365 Reviewed By: antonk52 Differential Revision: D42918954 Pulled By: passy fbshipit-source-id: 6f569cf32d5544308afab2bf11a245324601ead9 --- docs/extending/flipper-plugin.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/extending/flipper-plugin.mdx b/docs/extending/flipper-plugin.mdx index 81e564e37..ba1de0977 100644 --- a/docs/extending/flipper-plugin.mdx +++ b/docs/extending/flipper-plugin.mdx @@ -342,6 +342,8 @@ Opens a different plugin by id, optionally providing a deeplink to bring the tar Usage: `client.supportsMethod(method: string): Promise` +Method must be called within [onConnect](#onconnect), otherwise will throw error. + Resolves to true if the client supports the specified method. Useful when adding functionality to existing plugins, when connectivity to older clients is still required. Also useful when client plugins are implemented on multiple platforms and don't all have feature parity. #### `showNotification`