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

Unmount react component when disconnected #1260

Closed
treshugart opened this issue Dec 1, 2017 · 2 comments
Closed

Unmount react component when disconnected #1260

treshugart opened this issue Dec 1, 2017 · 2 comments

Comments

@treshugart
Copy link
Member

Do the same thing as: skatejs/renderer-preact#5

@NMinhNguyen
Copy link
Member

NMinhNguyen commented Apr 17, 2018

@treshugart inside disconnectedCallback, should super.disconnectedCallback() be called first (the way it is in skatejs/renderer-preact#5) or last? I'll try to prepare a PR for this in the next few days :)

@treshugart
Copy link
Member Author

@NMinhNguyen I would think, ideally, first? I generally try to call super as soon as possible, unless you need to do something before. I'm looking forward to the PR!

NMinhNguyen added a commit to NMinhNguyen/skatejs that referenced this issue Apr 21, 2018
NMinhNguyen added a commit to NMinhNguyen/skatejs that referenced this issue Apr 23, 2018
NMinhNguyen added a commit to NMinhNguyen/skatejs that referenced this issue Apr 23, 2018
treshugart added a commit that referenced this issue Apr 23, 2018
…n-disconnected

Unmount React component when disconnected. Closes #1260
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants