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

Is it safe to use the hook property of the vNode interface? #63

Closed
Aaron-Pool opened this issue Apr 10, 2019 · 1 comment
Closed

Is it safe to use the hook property of the vNode interface? #63

Aaron-Pool opened this issue Apr 10, 2019 · 1 comment

Comments

@Aaron-Pool
Copy link

After poking around the source code a bit, I noticed the hook property that can be set on the data object of a vnode, and It actually helped me solve one of the problems I was dealing with in a pretty elegant manner, but, since it's not documented anywhere, I wanted to make sure that that API is stable and ok to use in userland. Is that the case? My assumption is that it mirrors the hooks present on a directive.

@nickmessing
Copy link
Member

@Aaron-Pool, it's never safe to use undocumented features, it's unlikely it's going to change in the 2.x branch but it's possible and will be extremely hard to debug if behaviour changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants