Hacker News new | ask | show | jobs
by bayesian_horse 1163 days ago
Something like React Query and other hooks based approaches are fine and very useful for certain scenarios. At the end you always need a hook (or something very similar).

But it can lead to defining asynchronous workflows through the nesting of components, controlled by their mounting/unmounting and other state. I much rather have something like RTK Query which lets me both use it in a hook for simplicity and in Thunks or Sagas for more complex things.