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

RFC: api to retrieve current extension status #716

Open
david-shortman opened this issue May 20, 2021 · 0 comments
Open

RFC: api to retrieve current extension status #716

david-shortman opened this issue May 20, 2021 · 0 comments
Labels

Comments

@david-shortman
Copy link

autoPause prevents the redux devtools extension from doing tracking work.

But this doesn't prevent tools that integrate with the devtools from doing work to prepare and send some state to the devtools.

The devtools should expose some API that allows an integrating tool to query the status of the extension. Then those tools can avoid executing unnecessary code when the extension is closed.

This is relevant in a PR open for NgRx: ngrx/platform#2941 (comment)

I'm willing to work on a PR here, but am not sure what the API should be.

For instance, I think it would be simplest to expose the property directly under __REDUX_DEVTOOLS_EXTENSION__, named something like isExtensionOpen.

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

No branches or pull requests

2 participants