react-query or alova: does the request leave the browser?
· 3 min read
Choosing a data-fetching library usually starts with "which cache is better". That question skips the part that actually bites later: where do your requests run?
Choosing a data-fetching library usually starts with "which cache is better". That question skips the part that actually bites later: where do your requests run?
Short answer: they are layers, not rivals. axios is an HTTP client — it sends requests. alova is a request strategy layer — it decides how requests run: pagination, caching, retry, deduplication, token refresh. alova can use axios as its request adapter (@alova/adapter-axios), so choosing alova never means throwing axios away.