MCPcopy Index your code
hub / github.com/dewfall123/ahooks-vue

github.com/dewfall123/ahooks-vue @v0.14.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.14.1 ↗ · + Follow
92 symbols 207 edges 58 files 2 documented · 2% 1 cross-repo links updated 3y agov0.14.1 · 2022-09-05★ 1344 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ahooks-vue

Vue Hooks Library.

Most hooks implementation is original ported from ahooks.

Document

Features

  • Easy to learn and use.
  • Works for both Vue 3 and 2 ( thanks for vue-demi ).
  • Written in TypeScript with predictable static types.

Install

yarn add ahooks-vue

Usage

import { useWorkerFunction } from 'ahooks-vue';

Contributing

Setup ahooks-vue dev environment

  1. Clone the ahooks-vue repo
  2. Install dependencies yarn
  3. run demo bash yarn dev
  4. If it's successful, you should see the following message: listening at http://localhost:3000

Extension points exported contracts — how you extend this code

UsePaginatedRequestOptions (Interface)
(no doc)
src/usePaginatedRequest/types.ts
Options (Interface)
(no doc)
src/useHover/index.ts
DebounceOptions (Interface)
(no doc)
src/useDebounce/index.ts
UseRequestResult (Interface)
(no doc)
src/useRequest/types.ts
UseDocumentVisibilityOptions (Interface)
(no doc)
src/useDocumentVisibility/index.ts
Options (Interface)
(no doc)
src/useFullscreen/index.ts
Page (Interface)
(no doc)
src/useTable/index.ts
JOB_RUNNER_OPTIONS (Interface)
(no doc)
src/useWorkerFunction/lib/jobRunner.ts

Core symbols most depended-on inside this repo

useRequest
called by 24
src/useRequest/index.ts
sleep
called by 20
src/utils/sleep.ts
nextTickInFakeTimers
called by 18
src/useRequest/__test__/utils.ts
toggle
called by 7
src/useToggle/index.ts
getTargetElement
called by 6
src/utils/dom.ts
safeOnMounted
called by 5
src/utils/lifeCircle.ts
useBoolean
called by 5
src/useBoolean/index.ts
isType
called by 4
src/useKeyPress/constants.ts

Shape

Function 67
Interface 23
Enum 2

Languages

TypeScript100%

Modules by API surface

src/useTable/index.ts7 symbols
src/useWorkerFunction/index.ts6 symbols
src/useUrlState/index.ts6 symbols
src/useRequest/index.ts6 symbols
src/useToggle/index.ts5 symbols
src/useKeyPress/constants.ts4 symbols
src/useHover/index.ts4 symbols
src/useFullscreen/index.ts4 symbols
src/useBoolean/index.ts4 symbols
src/useWorkerFunction/lib/jobRunner.ts3 symbols
src/useSize/index.ts3 symbols
src/usePaginatedRequest/types.ts3 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add ahooks-vue \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page