大家好,我可以将 axios 与 next.js 13 一起使用,并且仍然获得带有缓存和重新验证配置的扩展 fetch api 版本的相同结果吗?
axios 会走向这个网络标准的方向吗?
我真的很喜欢 axios.intereceptors 功能,我应该使用下一个中间件吗?
能给我 2 美分吗?
My first stackoverflow question, even coding for 2 years (still) ... please vote up so I can unlock the mid dev super powers tks
`export default async function Page() {
// revalidate this data every 10 seconds at most
const res = await **axios.get**('https://...', { next: { revalidate: 10, cache: 'force-cache' .... } });
const data = res.json();
// ...
}
// does …Run Code Online (Sandbox Code Playgroud)