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

Add tag hooks for mount / unmount #51

Closed
somebee opened this issue Jan 20, 2016 · 0 comments
Closed

Add tag hooks for mount / unmount #51

somebee opened this issue Jan 20, 2016 · 0 comments
Milestone

Comments

@somebee
Copy link
Member

somebee commented Jan 20, 2016

We need something like willMount, didMount, willUnmount (see lifecycle methods in react). Hooks should be called when the node is actually mounted in the document (not when it is appended to a parent).

There are a few different ways to implement it. Performance is a primary concern. Since almost all tags will not have such hooks I think we should look for them in defineTag/extendTag and then add some custom logic / override certain methods if present. More specific implementation ideas will be posted here.

@somebee somebee added this to the 0.15.0 milestone Jan 20, 2016
@somebee somebee closed this as completed Oct 17, 2017
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

1 participant