-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Can't reconnect to the extension after calling disconnect #272
Comments
Indeed If you're using the extension API directly via Could you please tell more about your use case? |
We have an Angular2 application that's using using @ngrx/store, @ngrx/store-devtools and hot reloading. @ngrx/store-devtools is agnostic of all of that. At the end of each hot reload cycle, @ngrx/store-devtools would make another connection to the extension, so those connections end up piling up. Our solution (which worked handsomely until that commit) was to call devToolsExtension.disconnect() during the "dispose" stage of each hot reload cycle. Since that commit it doesn't work and we're stuck with the old version of the extension. |
Disconnect is more radical, it closes all connections, not only the invoked one. In your case you don't have multiple instances, and it could be a solution. |
I've just published |
Thanks for the fix. Unfortunately @ngrx/store-devtools doesn't expose the unsubscribe function to the outside of the "extension" module. It is buried inside a chain of private calls. |
It looks like the possibility to reconnect after disconnect() was broken in this commit:
f6bd08c
connect() call in function send(message) is never going to be executed again, even after an explicit disconnect() call, because the "connect" module level variable is not being reset.
The text was updated successfully, but these errors were encountered: