TanStackT
TanStack3y ago
5 replies
hidden-sapphire

Should React-Query only be used for api calls?

I'm working on a project involving connecting to a bluetooth device, which is an async process. I've opted to use react query to get the same state management that I'd expect from an API call, but I'm getting some pushback from the other devs on my team saying it should just be used for API management. Curious what everyone else's thoughts were because I always operated under the thought that react-query is state management for anything async, not just APIs
Was this page helpful?