Replies: 1 comment 1 reply
-
|
终于有人发现了,确实不是同一个实例,在请求时会clone一个出来,是为了在 例如,请求结束后获取缓存数据 const userMethod = getUserInfo();
await userMethod;
// 如果在beforeRequest中设置了token,那么这边会匹配不到缓存
const cachedUserInfo = await queryCache(userMethod);如果在 |
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.
-
在使用useWatcher 的时候,onSuccess回调函数参数里面的method实例,为什么和beforeRequest参数实例不是同一个实例?有大神能解释一下吗?小弟在此感谢了
Beta Was this translation helpful? Give feedback.
All reactions