-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
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
- Go to Angular Query documentation
- Navigate to 'Background Fetching Indicators' guide
- Scroll down to 'Displaying Global Background Fetching Loading State' section
- See
useIsFetching
instead ofinjectIsFetching
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!