Hacker News new | ask | show | jobs
by andix 974 days ago
In my opinion react query doesn't really add complexity if you just use to "await" your fetches. It even comes with the nice added functionality to refetch everything when refocusing the browser. And some automatic error handling.

Once you need query invalidation it gets really useful.

But it also depends how you use fetch right now. If you do it on per-route basis, than react query might not bring a lot of benefits.

1 comments

Mix of both. Some data needs to be ready on page load, but we also have quite a number of interactive use cases (e.g., form validation with a backend query).