Open frederikhors opened 3 years ago
I'm sorry if I'm always mentioning svelte-query these days.
I'll stop shortly (I'm starting a new project and I wanna use your gorgeous sswr).
sswr
I hope to be a great tester/helper/improver.
Svelte-Query has a Global Background Fetching Indicator.
I can use it in my __layout.svelte file like this:
__layout.svelte
<script> import { useIsFetching } from "@sveltestack/svelte-query"; const isFetching = useIsFetching(); </script> {#if $isFetching} <div>Queries are fetching in the background...</div> {/if}
Can we do the same?
It's really really useful!
PROLOGUE
I'm sorry if I'm always mentioning svelte-query these days.
I'll stop shortly (I'm starting a new project and I wanna use your gorgeous
sswr
).I hope to be a great tester/helper/improver.
REQUEST
Svelte-Query has a Global Background Fetching Indicator.
I can use it in my
__layout.svelte
file like this:Can we do the same?
It's really really useful!