T
TanStack2y ago
metropolitan-bronze

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
wise-white
wise-white2y ago
Do you know isFetching?

Did you find this page helpful?