-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
actions menu: documentClickHandler is not removed #733
Comments
Is this vega/react-vega#383? Calling Line 515 in 641b65e
|
I tried to trace where documentClickHandler would be removed but could not find suck code. So I think it is not related. |
I'm not following. I think the issue is in react vega, not embed. Do you agree? |
Vega view has a finalize method that should clean that up. If it doesn't, please file an issue with a reproduction in Vega. I'll close the issue here for now as I don't think embed has a bug. |
If i am not mistakened, the callback is created by vega-embed and added to the document click handlers. I don't see how vega finalize would be able to clean up this callback. It is declared in this scope at Line 413 in 641b65e
and added to document.click at Line 434 in 641b65e
|
Embed has its own finalize (which calls Vega view finalize) that you need to call. |
This is an issue that arised while using react-vega so it might have to be moved upstream.
There is a memory leak in the registeration of the actions mmenu. The document click handler is registered everytime the spec or data buffer is updated in react-vega; and it won't be garbage collected.
vega-embed/src/embed.ts
Line 434 in 641b65e
Thank you for this great project!
The text was updated successfully, but these errors were encountered: