hooks icon indicating copy to clipboard operation
hooks copied to clipboard

A high-quality & reliable React Hooks library.

Results 247 hooks issues
Sort by recently updated
recently updated
newest added

需求:自己封装一个组件,使用useRequest 发请求,想要获取全局配置,做一些默认处理,但是库中没有导出configContext配置选项,所以没法获取全局配置; 注:可以在包下的lib、es中获取到configContext但是在不同的环境可能会出现导入错误的configContext而获取不到全局配置

源代码中 ``` const targetQuery = { ...initialStateRef.current, ...queryFromUrl, } as state; const setState = (s: React.SetStateAction, options?: Options) => { const newQuery = typeof s === 'function' ? (s as...

formily与ahooks都是作为集团统一方案,两者最好🈶一些碰撞吧,主要是查询列表场景

v3

useAntdTable的getTableData函数的formData为空, 使用useAntdTable 缓存数据时,获取不到搜索表单字段 即 formData为空 [https://codesandbox.io/s/trusting-wind-q4sni?file=/src/components/index.js](https://codesandbox.io/s/trusting-wind-q4sni?file=/src/components/index.js) - [email protected] - [email protected]

v3

支持通过 `npm run create --name useXXX` 快捷创建一个 hooks 模板

[[中文版模板 / Chinese template](https://github.com/alibaba/hooks/blob/master/.github/PULL_REQUEST_TEMPLATE/pr_cn.md)] ### 🤔 This is a ... - [√] New feature - [ ] Bug fix - [ ] Site / documentation update - [ ] Demo...

[[中文版模板 / Chinese template](https://github.com/alibaba/hooks/blob/master/.github/PULL_REQUEST_TEMPLATE/pr_cn.md)] ### 🤔 This is a ... - [x] New feature - [ ] Bug fix - [ ] Site / documentation update - [ ] Demo...

[useLongPress](https://ahooks.js.org/zh-CN/hooks/use-long-press/) 真机上也不生效, 版本"ahooks": "^3.7.1"

needs more info

[[English Template / 英文模板](https://github.com/alibaba/hooks/blob/master/.github/PULL_REQUEST_TEMPLATE.md)] ### 🤔 这个变动的性质是? - [ ] 新特性提交 - [x] 日常 bug 修复 - [ ] 站点、文档改进 - [ ] 演示代码改进 - [ ] TypeScript 定义更新 -...