Replies: 1 comment 1 reply
-
我也发现设置 cacheKey + staleTime 完全不生效,调用 run 还是会发出请求,看了下 umijs/max 使用的是 ahooks/use-request v2.8, 直接下载 ahooks 的 v3.8 版本使用这两个参数是没有问题,不知道哪里出了问题,有时间再看看源码 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
使用useRequest時,緩存機制不起作用,但是當我使用最新版本的ahooks request時,緩存起作用。 如何進行手動升級?
With useRequest(ahooks2.0), the cache mechanism does not work, but when I use the latest version(ahooks3.7.7) ahooks request, the cache works. How can I do a manual upgrade?
https://umijs.org/docs/max/request
Context
Beta Was this translation helpful? Give feedback.
All reactions