A high-quality & reliable React Hooks library. https://alibaba.github.io/hooks/
A high-quality & reliable React Hooks library. https://alibaba.github.io/hooks/
Notice
use-url-stateis now published as@ahooks.js/use-url-state.If you are installing or upgrading this package, please use the new package name.
$ npm install --save ahooks
# or
$ yarn add ahooks
# or
$ pnpm add ahooks
# or
$ bun add ahooksimport { useRequest } from "ahooks";$ git clone [email protected]:alibaba/hooks.git
$ cd hooks
$ pnpm run init
$ pnpm startOpen your browser and visit http://127.0.0.1:8000
We welcome all contributions, please read our CONTRIBUTING.MD first, let's build a better hooks library together.
Thanks to all the contributors:
[useRequest] 3.10.0 typing regression:service 直接返回 promise.then(...) 时 data 被推断为 any
use lodash-es replace lodash
useInfiniteScroll 在第一次请求还未返回时,快速切换到其他组件,会造成无限循环的请求
useAntTable submit不能触发transform,我看了下源码是通过form.validateFields 实现获取表单值的,没办法触发,但是新的有api是validateFieldsReturnFormatValue能触发,什么时候修正下
向上滚动无限加载use-infinite-scroll的源码内部缺少了对滚动原点的判断
React Compiler safe?
useRequest 使用 throttleWait 在支付宝小程序报错,版本是3.9.7
[useRequest] 当通过 cacheKey 共享 promise 时,只有一个 loading 会变成 true,其余的 loading 还是 false
`useDrop` child trigger avoidance does not work reliably
use-url-state update "query-string": "9.3.1"