Skip to content

useIsFetching immediately inside <QueryClientProvider> throws #29

@frederikhors

Description

@frederikhors

Reading https://sveltequery.vercel.app/guides/background-fetching-indicators#displaying-global-background-fetching-loading-state:

If I use useIsFetching immediately inside <QueryClientProvider client={queryClient}> it throws:

Error: No QueryClient set, use QueryClientProvider to set one

I need to use a sub-components for it to work.

Why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions