React Query is a library that improves our development all the time. Instead of creating handlers for pending, fulfilled, and rejected states you can use hooks that give you all needed tools out of the box. You don't have to worry about missed loading phase for the end-user. What's more, you can benefit from cache synchronization and you can forget about re-fetching data. It will handle everything for you.