umi icon indicating copy to clipboard operation
umi copied to clipboard

[Feature Request] useRequest 是否可以使用 ahooks 而非 ahookjs/use-request 的版本

Open StephenPCG opened this issue 2 years ago • 6 comments
trafficstars

目前 @umijs/plugins 使用 ahooksjs/use-request,如果我没有理解错的话,ahooksjs/use-request 是一个早期的包,后续 useRequest 的代码已合并进入 ahooks 中,并且 ahooks 中的 useRequest 增加了一些新的特性,例如 runAsync

能否让 @umijs/plugins 依赖新的 ahooks 中的 useRequest,从而可以使用 useRequest 的一些新特性(如前面提到的 runAsync)。

StephenPCG avatar Jan 05 '23 08:01 StephenPCG

ahooks3 去掉了很多功能,以前的项目移植可能比较麻烦些,所以现在还是ahooks2,你可用重新实现一个request插件就好了。

ohroy avatar Mar 29 '23 12:03 ohroy

但不得不承认3更好用,比如 runAsync 功能。

lifegit avatar May 26 '23 01:05 lifegit

但不得不承认3更好用,比如 runAsync 功能。

lifegit avatar May 26 '23 01:05 lifegit

When is the new version of ahooks merged with umijs?

xXAvoraXx avatar Jul 12 '23 11:07 xXAvoraXx