show() is called again within threshold of 500ms, timer is overwritten with another instance
hide() is called again within threshold of the same 500ms, so it cancels the function from the second setTimeout(). At this point hide() can be called any number of times, it doesn't matter
The timeout from the first step runs out, function is called and spinner is shown. If one doesn't call hide() after that spinner hangs forever
I called show(). Its take few seconds to show Spinner.
In my case. I called show() in one component
Called show() in Component1. Then called one HTTP service. I got Response before Spinner load.
I hide spinner after I get the response only. but spinner loaded after the hide() method only.
In that case, it's continuous spinner is showing
Fixes the following situation: