Skip to content

Question: Handling Loading Flash with TanStack Query #4

Description

@ganeshdevnr

In your course, you demonstrate using pendingMilliseconds to prevent loading indicator flashes in route loaders.

When using TanStack Query with isFetching/isPending flags in components, we face the same UX problem.

What's the recommended pattern to delay/debounce Query flags to prevent loading flashes?

Should we create a custom hook, use Query config, or implement differently?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions