No exactly. You are now cancelling an on create requested animation frame on destroy. But the animation frame will pretty much all the times already being fired.
I was just wondering if you could provide a scenario where a Vue component is created and deleted within a few milliseconds.
I don't understand what you mean unfortunately.
Destroy is the vue method for when the component isn't active on the page. And we are just doing cleanup, it's not a few milliseconds after.
No exactly. You are now cancelling an on create requested animation frame on destroy. But the animation frame will pretty much all the times already being fired.
I was just wondering if you could provide a scenario where a Vue component is created and deleted within a few milliseconds.
The benefit could be when this.fancyFunctionHere kicks off a recursive loop, like an animation.