Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support scanning multiple id's for extension. #63

Open
jcblw opened this issue Mar 12, 2021 · 0 comments
Open

Support scanning multiple id's for extension. #63

jcblw opened this issue Mar 12, 2021 · 0 comments
Labels
core issue or PR for the core of finch-graphql package. enhancement New feature or request

Comments

@jcblw
Copy link
Contributor

jcblw commented Mar 12, 2021

Description

To support multiple vendors ( Chrome, Firefox, Edge, or Safari ) you would need to handle multiple ids for this to work with external messaging. You could do something like user-agent sniffing to get the correct vendor and send the specific id but it would be nicer if there was a way to scan for active ids. This could be something like passing a list of ids to finches context.

<ExtensionProvider scanIds={[x,y,z]}>...</ExtensionProvider>

The extension provider will make a built-in query to a finch API.

query healthcheck {
  _healthcheck
}

Then when something responds to this we could store some state into the provider that extension is responding to queries.

Think there could be weird issues when multiple respond probably not terrible though.

@jcblw jcblw added core issue or PR for the core of finch-graphql package. enhancement New feature or request labels Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core issue or PR for the core of finch-graphql package. enhancement New feature or request
Development

No branches or pull requests

1 participant