Open StephenPCG opened 1 year ago
目前 @umijs/plugins 使用 ahooksjs/use-request,如果我没有理解错的话,ahooksjs/use-request 是一个早期的包,后续 useRequest 的代码已合并进入 ahooks 中,并且 ahooks 中的 useRequest 增加了一些新的特性,例如 runAsync。
@umijs/plugins
ahooksjs/use-request
useRequest
ahooks
runAsync
能否让 @umijs/plugins 依赖新的 ahooks 中的 useRequest,从而可以使用 useRequest 的一些新特性(如前面提到的 runAsync)。
ahooks3 去掉了很多功能,以前的项目移植可能比较麻烦些,所以现在还是ahooks2,你可用重新实现一个request插件就好了。
但不得不承认3更好用,比如 runAsync 功能。
When is the new version of ahooks merged with umijs?
目前
@umijs/plugins
使用ahooksjs/use-request
,如果我没有理解错的话,ahooksjs/use-request
是一个早期的包,后续useRequest
的代码已合并进入ahooks
中,并且 ahooks 中的useRequest
增加了一些新的特性,例如runAsync
。能否让
@umijs/plugins
依赖新的ahooks
中的useRequest
,从而可以使用useRequest
的一些新特性(如前面提到的runAsync
)。