State Management · Middle · Question 27 of 75
How does isPending differ from isFetching?
- ✓Correct answer:
isPending- no data yet;isFetching- any request in flight, including background - 2They're the same flag with different names
- 3
isPendingis for mutations only,isFetchingfor queries only
Explanation
Show a skeleton when isPending, and a subtle indicator when isFetching while old data is visible. In v4 the first was called isLoading.