React Query is hands down one of the best libraries for managing server state. It works amazingly well out-of-the-box, with zero-config, and can be customized to your liking as your application grows.
React Query allows you to defeat and overcome the tricky challenges and hurdles of server state and control your app data before it starts to control you
research : undestanding react-query
read these
reference