To show a loading spinner while waiting for a web request response, I'd use the following very simple if statement with my spinner component:
{#if waitingForAPIResponse}
<Spinner></Spinner>
{/if}
What is a good approach to only show the Spinner component after, say, 200ms of waiting? I intuitively want to set up a timer, but I bet there's a better svelte approach.