vue-hooks-plus
vue-hooks-plus copied to clipboard
High performance & Simplicity 🧲 Vue 3 Hooks library
### Description useRequest 类型推导不完善,无法推导出 initialData 正确的data类型 。initialData 首受 service 影响,但不受 formatResult 的影响。 ### Suggested solution typescript 函数重载 ### Alternative _No response_ ### Additional context _No response_ ### Validations - [X]...
### Description 能否支持异步调用的 getCache ### Suggested solution useCachePlugin.js 中的 方法 getCache 使用 async await 调用 ### Alternative _No response_ ### Additional context _No response_ ### Validations - [X] Follow our...
### Description Lodash官方提供了ES Module版本的lodash: lodash-es, 给我们导入lodash模块,Tree Shaking就可以生效,其他没用到的代码打包的时候就可以自动移除掉了。 ### Suggested solution 写法如下: 原来写法:import debounce from "lodash/debounce" 改后:import { debounce } from "lodash-es" 打包大小是差不多,就是写法上的区别,后者更方便一点。 ### Alternative _No response_ ### Additional context _No...
### Describe the bug Some hooks will import all hooks. For example: `useInfiniteScroll` https://github.com/InhiblabCore/vue-hooks-plus/blob/2a8fd77d5adab1f59d042dbacc7b407631aefa92/packages/hooks/src/useInfiniteScroll/index.ts#L2  ### Steps to reproduce ```js import useInfiniteScroll from 'vue-hooks-plus/es/useInfiniteScroll'; ``` ### System Info ```shell no...
[[中文版模板 / Chinese template](https://github.com/InhiblabCore/vue-hooks-plus/tree/master/.github/PULL_REQUEST_TEMPLATE-zh-CN.md)] ### 🤔 This is a ... - [x] New feature - [ ] Bug fix - [ ] Site / documentation update - [ ] Demo...