umijs / umi

A framework in react community ✨
https://umijs.org
MIT License
15.34k stars 2.65k forks source link

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

Open StephenPCG opened 1 year ago

StephenPCG commented 1 year ago

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

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

ohroy commented 1 year ago

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

lifegit commented 1 year ago

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

lifegit commented 1 year ago

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

xXAvoraXx commented 1 year ago

When is the new version of ahooks merged with umijs?