Just curious about the willDestroyElement hook.
If I want to do some work such as animate the dismissal of a UI element. Seems like willDestroyElement is the proper place to do that.
But also curious why there is not a didDestroyElement hook to provide semantic symmetry to didInsertElement hook? Truly and utterly past tense. Is it because essentially there is nothing to reference anymore in memory at this point?
If I had a behavior that is indeterminate in length of time say but I always want to do it asynchronously and without blocking UI is it even possible to use willDestroyElement?
I guess I am not sure about the specific use case for this.
Primarily, I want to animate the closing of a modal dialog component and it seems like willDestroyElement is the place to do that. But if there is a problem in the function that implements this, then that means that the UI element can get stuck in the DOM and might not actually be removed.