MCPcopy Create free account

hub / github.com/alibaba/hooks / functions

Functions538 in github.com/alibaba/hooks

↓ 44 callersFunctionsetState
(v: SetStateAction<T>, ...args: any[])
packages/hooks/src/useControllableValue/index.ts:59
↓ 42 callersFunctionuseRequest
( service: Service<TData, TParams>, options?: Options<TData, TParams>, plugins?: Plugin<TData, TParams>[
packages/hooks/src/useRequest/src/useRequest.ts:40
↓ 27 callersFunctionuseMemoizedFn
(fn: T)
packages/hooks/src/useMemoizedFn/index.ts:12
↓ 24 callersFunctiongetTargetElement
(target: BasicTarget<T>, defaultElement?: T)
packages/hooks/src/utils/domTarget.ts:14
↓ 23 callersFunctionsetValue
(value: ValueParam)
packages/hooks/src/useCounter/index.ts:41
↓ 22 callersFunctionuseLatest
(value: T)
packages/hooks/src/useLatest/index.ts:4
↓ 20 callersFunctionisFunction
(val: unknown)
packages/hooks/src/utils/index.ts:5
↓ 17 callersFunctionisNumber
(val: unknown)
packages/hooks/src/utils/index.ts:17
↓ 15 callersMethodsetState
(s: Partial<FetchState<TData, TParams>> = {})
packages/hooks/src/useRequest/src/Fetch.ts:32
↓ 15 callersFunctionsleep
(time: number)
packages/hooks/src/utils/testingHelpers.ts:1
↓ 13 callersMethodrun
(...params: TParams)
packages/hooks/src/useRequest/src/Fetch.ts:129
↓ 12 callersMethodcancel
()
packages/hooks/src/useRequest/src/Fetch.ts:142
↓ 12 callersFunctionuseBoolean
(defaultValue = false)
packages/hooks/src/useBoolean/index.ts:11
↓ 11 callersFunctiongetKey
(item: T)
packages/hooks/src/useSelections/index.ts:22
↓ 11 callersFunctionuseEventListener
(eventName: string | string[], handler: noop, options: Options = {})
packages/hooks/src/useEventListener/index.ts:47
↓ 11 callersFunctionuseUnmount
(fn: () => void)
packages/hooks/src/useUnmount/index.ts:6
↓ 9 callersFunctionuseAntdTable
( service: Service<TData, TParams>, options: AntdTableOptions<TData, TParams> = {}, )
packages/hooks/src/useAntdTable/index.tsx:15
↓ 9 callersFunctionuseEffectWithTarget
( effect: EffectCallback, deps: DependencyList, target: BasicTarget<any> | BasicTarget<any>[], )
packages/hooks/src/utils/createEffectWithTarget.ts:15
↓ 9 callersFunctionuseKeyPress
( keyFilter: KeyFilter, eventHandler: (event: KeyboardEvent, key: KeyType) => void, option?: Options, )
packages/hooks/src/useKeyPress/index.ts:235
↓ 8 callersFunctionuseInfiniteScroll
( service: Service<TData>, options: InfiniteScrollOptions<TData> = {}, )
packages/hooks/src/useInfiniteScroll/index.tsx:10
↓ 7 callersFunctionuseClickAway
( onClickAway: (event: T) => void, target: BasicTarget | BasicTarget[], eventName: DocumentEventKey | Do
packages/hooks/src/useClickAway/index.ts:9
↓ 7 callersFunctionuseReactive
(initialState: S)
packages/hooks/src/useReactive/index.ts:57
↓ 6 callersFunctionfinishPress
(event: EventType, triggerClick = true)
packages/hooks/src/useLongPress/index.ts:87
↓ 6 callersMethodgetItem
(key: string)
packages/hooks/src/createUseStorageState/__tests__/index.spec.ts:20
↓ 6 callersFunctiononChange
(c: number, p: number)
packages/hooks/src/usePagination/index.ts:27
↓ 6 callersFunctionremove
(key: K)
packages/hooks/src/useSet/index.ts:22
↓ 6 callersFunctionrequest
(req: any)
packages/hooks/src/utils/testingHelpers.ts:9
↓ 6 callersMethodrunAsync
(...params: TParams)
packages/hooks/src/useRequest/src/Fetch.ts:46
↓ 6 callersFunctiontoggle
()
packages/hooks/src/useToggle/index.ts:22
↓ 6 callersFunctionuseCreation
(factory: () => T, deps: DependencyList)
packages/hooks/src/useCreation/index.ts:5
↓ 6 callersFunctionuseDynamicList
(initialList: T[] = [])
packages/hooks/src/useDynamicList/index.ts:4
↓ 6 callersFunctionuseFusionTable
( service: Service<TData, TParams>, options: FusionTableOptions<TData, TParams> = {}, )
packages/hooks/src/useFusionTable/index.tsx:6
↓ 6 callersFunctionusePagination
( service: Service<TData, TParams>, options: PaginationOptions<TData, TParams> = {}, )
packages/hooks/src/usePagination/index.ts:7
↓ 6 callersFunctionuseToggle
(defaultValue: D = false as unknown as D, reverseValue?: R)
packages/hooks/src/useToggle/index.ts:16
↓ 6 callersFunctionuseUpdate
()
packages/hooks/src/useUpdate/index.ts:4
↓ 5 callersFunctionisString
(val: unknown)
packages/hooks/src/utils/index.ts:9
↓ 5 callersFunctionset
(key: K, entry: T)
packages/hooks/src/useMap/index.ts:8
↓ 5 callersMethodsetItem
(key: string, value: string)
packages/hooks/src/createUseStorageState/__tests__/index.spec.ts:38
↓ 5 callersFunctionuseControllableValue
(defaultProps?: Props, options: Options<T> = {})
packages/hooks/src/useControllableValue/index.ts:29
↓ 5 callersFunctionuseFullscreen
(target: BasicTarget, options?: Options)
packages/hooks/src/useFullscreen/index.ts:20
↓ 5 callersFunctionuseMount
(fn: MountCallback)
packages/hooks/src/useMount/index.ts:8
↓ 5 callersFunctionuseRafState
(initialState?: S | (() => S))
packages/hooks/src/useRafState/index.ts:8
↓ 5 callersFunctionuseSelections
(items: T[], options?: T[] | Options<T>)
packages/hooks/src/useSelections/index.ts:11
↓ 5 callersFunctionuseSetState
( initialState?: S | (() => S), )
packages/hooks/src/useSetState/index.ts:13
↓ 5 callersFunctionuseSize
(target: BasicTarget)
packages/hooks/src/useSize/index.ts:9
↓ 5 callersFunctionuseUrlState
( baseState?: S | (() => S), options?: Options, )
packages/use-url-state/src/index.ts:29
↓ 4 callersFunctioncreateUseStorageState
(getStorage: () => Storage | undefined)
packages/hooks/src/createUseStorageState/index.ts:21
↓ 4 callersMethoddisconnect
()
packages/hooks/src/useSize/__tests__/index.spec.tsx:18
↓ 4 callersFunctionisSelected
(item: T)
packages/hooks/src/useSelections/index.ts:49
↓ 4 callersFunctiontoggle
(item: T)
packages/hooks/src/useSelections/index.ts:61
↓ 4 callersFunctionuseCookieState
(cookieKey: string, options: Options = {})
packages/hooks/src/useCookieState/index.ts:51
↓ 4 callersFunctionuseDebounceFn
(fn: T, options?: DebounceOptions)
packages/hooks/src/useDebounceFn/index.ts:11
↓ 4 callersFunctionuseExternal
(path?: string, options?: Options)
packages/hooks/src/useExternal/index.ts:95
↓ 4 callersFunctionuseHistoryTravel
(initialValue?: T, maxLength: number = 0)
packages/hooks/src/useHistoryTravel/index.ts:34
↓ 4 callersFunctionuseInViewport
(target: BasicTarget | BasicTarget[], options?: Options)
packages/hooks/src/useInViewport/index.ts:15
↓ 4 callersFunctionuseLongPress
( onLongPress: (event: EventType) => void, target: BasicTarget, { delay = 300, moveThreshold, onClick, o
packages/hooks/src/useLongPress/index.ts:15
↓ 4 callersFunctionusePrevious
( state: T, shouldUpdate: ShouldUpdateFunc<T> = defaultShouldUpdate, )
packages/hooks/src/usePrevious/index.ts:7
↓ 4 callersFunctionuseRafInterval
( fn: () => void, delay: number | undefined, options?: { immediate?: boolean; }, )
packages/hooks/src/useRafInterval/index.ts:42
↓ 4 callersFunctionuseRafTimeout
(fn: () => void, delay: number | undefined)
packages/hooks/src/useRafTimeout/index.ts:45
↓ 4 callersFunctionuseScroll
( target?: Target, shouldUpdate: ScrollListenController = () => true, )
packages/hooks/src/useScroll/index.ts:12
↓ 4 callersFunctionuseTextSelection
(target?: BasicTarget<Document | Element>)
packages/hooks/src/useTextSelection/index.ts:52
↓ 4 callersFunctionuseThrottleFn
(fn: T, options?: ThrottleOptions)
packages/hooks/src/useThrottleFn/index.ts:11
↓ 3 callersFunction_submit
(initPagination?: TParams[0])
packages/hooks/src/useAntdTable/index.tsx:130
↓ 3 callersFunctioncalculate
()
packages/hooks/src/useResponsive/index.ts:34
↓ 3 callersFunctionclear
(cacheKey?: string | string[])
packages/hooks/src/useRequest/doc/cache/demo/clearCache.tsx:32
↓ 3 callersFunctionclearCache
(key?: string | string[])
packages/hooks/src/useRequest/src/utils/cache.ts:44
↓ 3 callersFunctionclearTimer
()
packages/hooks/src/useLongPress/index.ts:80
↓ 3 callersFunctioncreateDeepCompareEffect
(hook)
packages/hooks/src/createDeepCompareEffect/index.ts:9
↓ 3 callersFunctioncreateTimer
(event: EventType)
packages/hooks/src/useLongPress/index.ts:73
↓ 3 callersFunctioncreateUpdateEffect
(hook)
packages/hooks/src/createUpdateEffect/index.ts:7
↓ 3 callersFunctionisCancelledError
(error: unknown)
packages/hooks/src/useRequest/src/utils/cancelledError.ts:26
↓ 3 callersFunctionisDocumentVisible
()
packages/hooks/src/useRequest/src/utils/isDocumentVisible.ts:3
↓ 3 callersMethodmutate
(data?: TData | ((oldData?: TData) => TData | undefined))
packages/hooks/src/useRequest/src/Fetch.ts:161
↓ 3 callersMethodobserve
()
packages/hooks/src/useSize/__tests__/index.spec.tsx:17
↓ 3 callersMethodrefresh
()
packages/hooks/src/useRequest/src/Fetch.ts:151
↓ 3 callersMethodrunPluginHandler
(event: keyof PluginReturn<TData, TParams>, ...rest: any[])
packages/hooks/src/useRequest/src/Fetch.ts:40
↓ 3 callersFunctionsetState
(s: React.SetStateAction<State>)
packages/use-url-state/src/index.ts:69
↓ 3 callersFunctionunSelectAll
()
packages/hooks/src/useSelections/index.ts:76
↓ 3 callersFunctionuseAsyncEffect
( effect: () => AsyncGenerator<void, void, void> | Promise<void> | (() => void), deps?: DependencyList, )
packages/hooks/src/useAsyncEffect/index.ts:11
↓ 3 callersFunctionuseDrag
(data: T, target: BasicTarget, options: Options = {})
packages/hooks/src/useDrag/index.ts:19
↓ 3 callersFunctionuseEventTarget
(options?: Options<T, U>)
packages/hooks/src/useEventTarget/index.ts:16
↓ 3 callersFunctionuseFocusWithin
(target: BasicTarget, options?: Options)
packages/hooks/src/useFocusWithin/index.tsx:11
↓ 3 callersFunctionuseInterval
(fn: () => void, delay?: number, options: { immediate?: boolean } = {})
packages/hooks/src/useInterval/index.ts:5
↓ 3 callersFunctionuseTimeout
(fn: () => void, delay?: number)
packages/hooks/src/useTimeout/index.ts:5
↓ 3 callersFunctionuseUnmountedRef
()
packages/hooks/src/useUnmountedRef/index.tsx:4
↓ 3 callersFunctionuseVirtualList
(list: T[], options: Options<T>)
packages/hooks/src/useVirtualList/index.ts:21
↓ 2 callersFunctionadd
(key: K)
packages/hooks/src/useSet/index.ts:12
↓ 2 callersFunctioncalculateRange
()
packages/hooks/src/useVirtualList/index.ts:91
↓ 2 callersFunctioncancelPendingPromise
(pendingRejectRef: PendingPromiseRef)
packages/hooks/src/useRequest/src/utils/cancelledError.ts:35
↓ 2 callersMethodclear
()
packages/hooks/src/createUseStorageState/__tests__/index.spec.ts:15
↓ 2 callersFunctionclearTimer
(cachedData?: RecordData)
packages/hooks/src/useRequest/src/utils/cache.ts:15
↓ 2 callersFunctionconnect
()
packages/hooks/src/useWebSocket/index.ts:135
↓ 2 callersFunctionconnectWs
()
packages/hooks/src/useWebSocket/index.ts:77
↓ 2 callersFunctioncreateEffectWithTarget
(useEffectType: typeof useEffect | typeof useLayoutEffect)
packages/hooks/src/utils/createEffectWithTarget.ts:8
↓ 2 callersFunctiondec
(delta: number = 1)
packages/hooks/src/useCounter/index.ts:55
↓ 2 callersFunctiondepsAreSame
(oldDeps: DependencyList, deps: DependencyList)
packages/hooks/src/utils/depsAreSame.ts:3
↓ 2 callersFunctiondepsEqual
(aDeps: DependencyList = [], bDeps: DependencyList = [])
packages/hooks/src/utils/depsEqual.ts:4
↓ 2 callersFunctiondisconnect
()
packages/hooks/src/useWebSocket/index.ts:140
↓ 2 callersFunctionenterFullscreen
()
packages/hooks/src/useFullscreen/index.ts:97
↓ 2 callersFunctionexitFullscreen
()
packages/hooks/src/useFullscreen/index.ts:116
next →1–100 of 538, ranked by callers