-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
.destroy()
vs .teardown()
for custom events
#531
Comments
I believe this is a docs issue, not a codegen issue. After That said, I'm not sure why custom event handlers do still use |
Yeah, I think we should rename it to For event handlers that are declared inline, like the one in the docs example, we could catch it at compile time in most cases. |
Fixed in 1.59 |
in the custom methods documentation the event
longpress
returns{destroy}
but the generated code in the REPL haslongpress_handler.teardown()
called in the destroy method. The longpress event would never get removed.From #365 I understand
component.destroy()
is the retained convention and I am assuming the documentation is correct but the generated code is not?(sorry if I am raising this as an issue instead of a PR but I am still trying to figure out the vision and conventions)
The text was updated successfully, but these errors were encountered: