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

react vega leaks memory #383

Closed
domoritz opened this issue Apr 27, 2021 · 6 comments
Closed

react vega leaks memory #383

domoritz opened this issue Apr 27, 2021 · 6 comments
Labels

Comments

@domoritz
Copy link
Member

In

we only finalize the view but we need to call finalize from the embed result.

@domoritz domoritz added the bug label Apr 27, 2021
@ndobb
Copy link

ndobb commented May 1, 2021

@kristw is this the issuing causing #200?

In our app's usage of react-vega we'll potentially be mounting and unmounting the <Vega/> component frequently, so a fix (or guidance on how to fix ourselves) would be great.

@domoritz
Copy link
Member Author

domoritz commented May 1, 2021

The fix should be pretty straightforward. Instead of calling finalize on the view, we should call it on the result from Vega-Embed. We do this in https://github.com/vega/svelte-vega now. It would be awesome if you could send a pull request.

@ndobb
Copy link

ndobb commented May 1, 2021

Happy to take a stab at a fix, and thanks for the pointer to svelte-vega.

@ndobb
Copy link

ndobb commented May 19, 2021

@domoritz please see PR at #403.

@kristw
Copy link
Member

kristw commented Aug 27, 2021

published [email protected]

@kristw kristw closed this as completed Aug 27, 2021
@domoritz
Copy link
Member Author

Thank you @kristw!

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

3 participants