Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global Background Fetching Indicator #15

Open
frederikhors opened this issue Aug 11, 2021 · 0 comments
Open

Global Background Fetching Indicator #15

frederikhors opened this issue Aug 11, 2021 · 0 comments

Comments

@frederikhors
Copy link
Contributor

frederikhors commented Aug 11, 2021

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:

<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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant