Open Airkro opened 4 weeks ago
change them like:
// packages/hooks/src/useInfiniteScroll/index.ts
import { useBoolean, useEventListener, useRequest } from "../index";
Into:
// packages/hooks/src/useInfiniteScroll/index.ts
import useBoolean from "../useBoolean";
import useEventListener from "../useEventListener";
import useRequest from "../useRequest ";
@Airkro Thank you for your feedback. I will check and optimize the code, and I will be updating and improving it soon. Please stay tuned for the latest version.
The translation is: "If you're interested, feel free to submit a PR to make it better. 🤩
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
System Info
Used Package Manager
pnpm
Validations