Initial setup to use RTK Query to handle API calls
RTK Query is a powerful data fetching and caching tool. It is designed to simplify common cases for loading data in a web application, eliminating the need to hand-write data fetching & caching logic yourself.
Why?
Tracking loading state in order to show UI spinners Avoiding duplicate requests for the same data Optimistic updates to make the UI feel faster Managing cache lifetimes as the user interacts with the UI
Edited by Kanamarlapudi Jaya srikanth