useQueries isPending is always true
When using
What I'm trying to have is a Skeleton on first load, then a "loading indicator" when the user triggers another request because of a filter or something.
If
I see a mention of
Here is how I use it:
useQueries, I see that even if I set placeholderData isPending is always true when refetching with different params. What I'm trying to have is a Skeleton on first load, then a "loading indicator" when the user triggers another request because of a filter or something.
If
isPending and isLoading are always true, how can I check that the request is not happening for the first time with useQueries?I see a mention of
placeholderData in the docs of useQueries explaining that it doesn't pass previous information but I'm not sure if this is the reasonHere is how I use it: