-
useRequest 的轮询模式下的 runAsync 定义是(...params: TParams) => Promise; 轮询是请求多次的, 而Promise只会被 resolve 一次, 请问这个API的作用是什么 |
Beta Was this translation helpful? Give feedback.
Answered by
liuyib
Nov 28, 2023
Replies: 1 comment
-
官网文档还没更新,所以我把 pr 截图给你吧: 轮询时一般不会直接使用 runAsync,除非需要手动触发请求了,可以用 run或者runAsync |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ZhihaoLau
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
官网文档还没更新,所以我把 pr 截图给你吧:
https://github.com/alibaba/hooks/pull/2358/files
轮询时一般不会直接使用 runAsync,除非需要手动触发请求了,可以用 run或者runAsync