Problem Statement
What is fetchBaseQuery in RTK Query?
Explanation
fetchBaseQuery is RTK Query's recommended lightweight wrapper around the native fetch API that handles common tasks like setting base URLs, adding headers, handling request/response transformations, and parsing responses. It supports features like automatic JSON parsing, adding authentication tokens via prepareHeaders, custom response handlers, and timeout configuration. While fetchBaseQuery covers most use cases, you can also create custom baseQuery functions using axios or other HTTP clients if needed.
