are you still doing query.isLoading, query.isError

1 min read Updated June 5, 2025

Random insight from making everything lazy loaded - we should be using

useSuspenseQuery

with ErrorBoundary and Suspense/Fallback everywhere , it makes loading / error handling so easy:

https://tanstack.com/query/latest/docs/framework/react/guides/suspense

We don’t need to keep doing

query.isLoading

,

query.isError

anymore

Properly handles context hoisting - so if there is an error somewhere it will bubble up to the nearest Suspense Boundary