@sukima wrote:
All the previous topics seem out of date and inaccurate resurrecting topic.
In a component where do we tear down Dom events / jQuery listeners?
willDestroyElement
orwillDestroy
?
- Glimmer components do not have a
willDestroyElement
hook.- API docs say
willDestroy
is for teardown and leavewillDestroyElement
vague and unhelpful.- Guides specifically call out
willDestroyElement
and do not offerwillDestroy
as a lifecycle hook.Trying to settle a debate at work. Thankx
Posts: 3
Participants: 2