-
Notifications
You must be signed in to change notification settings - Fork 139
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
Give an opportunity to the renderer to perform clean when disconnected #1244
Comments
Hmm interesting, thanks for report! maybe this should be opened directly on renderer-preact ? |
You are right. Done. Feel free to close this one. |
Since the monorepo migration, I am not sure the fix that happened in the previous repository has been ported back. Maybe we should reopen this issue ? |
Good point, @freeman. I think this can be done by providing a |
This is starting to make me wonder if there should be a base |
Using |
Not sure if it is a bug or a feature request ...
Current behaviour
When a custom element if removed from the DOM, the
disconnectedCallback
is properly called but this does not cascade to the preact components below. This means thecomponentWillUnmount
lifecycle method is never called in those.This can lead to memory leaks as for example any subscription taken in the
componentDidMount
lifecycle will not be released properly when the custom element is removed from the DOM.Expected behaviour
skatejs should notify the renderer so that the proper lifecycle methods of the renderer can be correctly triggered.
The text was updated successfully, but these errors were encountered: