There are multiple onDestroy events happening during tear down, and most of them are unnecessary since the whole component is going to be destroyed anyway. Once the onDestroy signal is received, setting a flag to not do anything on the child components and execute clean up on the composition can speed up things significantly.
There are multiple onDestroy events happening during tear down, and most of them are unnecessary since the whole component is going to be destroyed anyway. Once the onDestroy signal is received, setting a flag to not do anything on the child components and execute clean up on the composition can speed up things significantly.