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

Feature request: Deregister relay environments from hook api #140

Open
junoatwork opened this issue Aug 18, 2022 · 0 comments
Open

Feature request: Deregister relay environments from hook api #140

junoatwork opened this issue Aug 18, 2022 · 0 comments

Comments

@junoatwork
Copy link

Currently, I can call __RELAY_DEVTOOLS_HOOK__.registerEnvironment(env) to add an environment to the devtools environment dropdown, but there is no corresponding way to remove (or deregister) an environment.

My motivation is for a sandbox tool where there may be many relay environments created or torn down within a page lifecycle. Currently, the dropdown is add-only, so after a short period of time we have no choice but to do a full-page reload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant