-
最近我们已经在大力处理 issue 和 pr,由于数量比较多,所以我们会优先处理 bug 类的 issue 和 pr,feature 类的优先级会低一点,望大家不要催。
大概会在下半年开始筹备 v4 相关的,如果你有兴趣欢迎一起来建设,有想法可以找我进行细聊。
-
- useMemoizedFn: [ahooks 3.0](https://github.com/alibaba/hooks/blob/7fad40bae29e52aec61a1fbdcbe13d67f1ad400f/packages/hooks/src/useMemoizedFn/index.ts)
- useEvent: [rc-util 5.x](https://github.com/re…
-
### Version of antd-mobile
^5.33.2
### Operating system and its version
Others
### Browser and its version
chrome
### Sandbox to reproduce
_No response_
### What happened?
w…
-
@umijs/max 内置了插件方案。它基于 [axios](https://axios-http.com/) 和 [ahooks](https://ahooks-v2.surge.sh/) 的 useRequest 提供了一套统一的网络请求和错误处理方案。
-
## usePersistFn
usePersistFn可以持久化function,保证函数地址永远不会变化。
```typescript
import { useRef } from 'react';
export type noop = (...args: any[]) => any;
function usePersistFn(fn: T) {
const f…
-
官方是否考虑将ahooks升级到最新版,最新版useRequest增加了新功能
-
### 相关平台
微信小程序
### 复现仓库
[https://github.com/NervJS/模板](https://github.com/NervJS/模板)
**小程序基础库: 2.15.0**
**使用框架: React**
### 复现步骤
使用taro init 创建 React 项目
添加 ahooks 安装及引用;
使用 useRequest…
-
### Link to the code that reproduces this issue
https://github.com/lobehub/lobe-chat/tree/chore/upgrade-nextjs
### To Reproduce
1. pnpm i
2. npm start ,and open url
then you will see:
`…
-
### 用于对一个元素进行监听:鼠标是否在停留在该元素上,并提供回调函数,可以在鼠标放到元素上触发动作,比如触发动画回调,还有更复杂一些的场景弹出一个浮框内容,浮框跟着鼠标在该元素运动
### API
```typescript
function useMouseInElement(target?: BasicTarget, inCallback?: (result: Result) …
-
https://ahooks.js.org/