Skip to content

Angular docs: useIsFetching not converted to injectIsFetching in background-fetching-indicators guide #9744

@wook95

Description

@wook95

Describe the bug

The Angular version of the background-fetching-indicators guide shows React's useIsFetching hook instead of Angular's injectIsFetching function. This happens because the Angular guide references the React guide but lacks the replace rules that other Angular guides have.

The file docs/framework/angular/guides/background-fetching-indicators.md references React documentation but doesn't convert React-specific APIs to Angular equivalents, causing confusion for Angular users.

Your minimal, reproducible example

N/A - This is a documentation issue. You can see the problem by visiting: https://tanstack.com/query/latest/docs/framework/angular/guides/background-fetching-indicators The second code example shows useIsFetching which doesn't exist in Angular Query.

Steps to reproduce

  1. Go to Angular Query documentation
  2. Navigate to 'Background Fetching Indicators' guide
  3. Scroll down to 'Displaying Global Background Fetching Loading State' section
  4. See useIsFetching instead of injectIsFetching

Expected behavior

As an Angular user, I expected to see injectIsFetching from @tanstack/angular-query-experimental but I am seeing useIsFetching from @tanstack/react-query.

How often does this bug happen?

Every time

Screenshots or Videos

N/A

Platform

  • Version: Any (documentation issue)

Tanstack Query adapter

angular-query

TanStack Query version

Latest (documentation issue affects all versions)

TypeScript version

N/A

Additional context

All other Angular guides properly convert React hooks to Angular inject functions using replace rules in their frontmatter. This guide is missing:

replace: { 'useIsFetching': 'injectIsFetching', 'hook': 'function' }

Would be happy to submit a PR if this looks good to you!

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