In the documentation of the RTK query, this is the introduction that is provided to the fetchBaseQuery
util:
This is a very small wrapper around
fetch
that aims to simplify requests. It is not a full-blown replacement foraxios
,superagent
, or any other more heavy-weight library, but it will cover the large majority of your needs.
OK, I get that fetchBaseQuery isn't perfect, but when should I use fetchBaseQuery over axios
or superagent
?
What are the tradeoffs?