T
TanStack2y ago
foreign-sapphire

isPending is true by default without query.

I want to show a loading message while isPending is true but its true by default, so what could i do?
if(isPending) return <p>Loading...</p>
if(isPending) return <p>Loading...</p>
1 Reply
flat-fuchsia
flat-fuchsia2y ago
Do you know isFetching?

Did you find this page helpful?