Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/hooks
/ functions
Functions
538 in github.com/alibaba/hooks
⨍
Functions
538
◇
Types & classes
127
↓ 2 callers
Function
getActiveFieldValues
()
packages/hooks/src/useAntdTable/index.tsx:53
↓ 2 callers
Function
getClientPosition
(event: EventType)
packages/hooks/src/useLongPress/index.ts:56
↓ 2 callers
Function
getConnection
()
packages/hooks/src/useNetwork/index.ts:21
↓ 2 callers
Function
getConnectionProperty
()
packages/hooks/src/useNetwork/index.ts:29
↓ 2 callers
Function
getDefaultValue
()
packages/hooks/src/createUseStorageState/index.ts:51
↓ 2 callers
Function
getDistanceTop
(index: number)
packages/hooks/src/useVirtualList/index.ts:70
↓ 2 callers
Function
getIsFullscreen
()
packages/hooks/src/useFullscreen/index.ts:33
↓ 2 callers
Function
getScrollHeight
(el: Document | Element)
packages/hooks/src/utils/rect.ts:12
↓ 2 callers
Function
getStoredValue
()
packages/hooks/src/createUseStorageState/index.ts:39
↓ 2 callers
Function
getTargetValue
(val: number, options: Options = {})
packages/hooks/src/useCounter/index.ts:19
↓ 2 callers
Function
go
(step: number)
packages/hooks/src/useHistoryTravel/index.ts:97
↓ 2 callers
Function
inc
(delta: number = 1)
packages/hooks/src/useCounter/index.ts:51
↓ 2 callers
Function
isBoolean
(val: unknown)
packages/hooks/src/utils/index.ts:13
↓ 2 callers
Function
isNonNullable
(val: T)
packages/hooks/src/utils/index.ts:25
↓ 2 callers
Function
isObject
(val: unknown)
packages/hooks/src/utils/index.ts:1
↓ 2 callers
Function
isThenable
(val: any)
packages/hooks/src/utils/index.ts:29
↓ 2 callers
Function
isUndef
(val: unknown)
packages/hooks/src/utils/index.ts:21
↓ 2 callers
Function
isValidKeyType
(value: unknown)
packages/hooks/src/useKeyPress/index.ts:152
↓ 2 callers
Function
observer
(initialVal: T, cb: () => void)
packages/hooks/src/useReactive/index.ts:11
↓ 2 callers
Function
onData
( dataTransfer: DataTransfer, event: React.DragEvent | React.ClipboardEvent, )
packages/hooks/src/useDrop/index.ts:32
↓ 2 callers
Function
remove
(key: K)
packages/hooks/src/useMap/index.ts:20
↓ 2 callers
Function
reset
()
packages/hooks/src/useMap/index.ts:28
↓ 2 callers
Function
runAsyncForCurrent
(data?: TData)
packages/hooks/src/useInfiniteScroll/index.tsx:100
↓ 2 callers
Function
select
(item: T)
packages/hooks/src/useSelections/index.ts:51
↓ 2 callers
Function
selectAll
()
packages/hooks/src/useSelections/index.ts:69
↓ 2 callers
Function
service
(a = 1, b = 1)
packages/hooks/src/useRequest/__tests__/index.spec.ts:420
↓ 2 callers
Function
set
(value: ValueParam)
packages/hooks/src/useCounter/index.ts:59
↓ 2 callers
Function
setup
( initialEntries: MemoryRouterProps['initialEntries'], baseState: any = {}, options?: Options, )
packages/use-url-state/__tests__/setup.tsx:8
↓ 2 callers
Function
setup
( service: Parameters<typeof useRequest>[0], options: Parameters<typeof useRequest>[1], )
packages/hooks/src/useRequest/__tests__/useCachePlugin.spec.tsx:10
↓ 2 callers
Function
setup
(items: T[], options?: T[] | Options<T>)
packages/hooks/src/useSelections/__tests__/index.spec.ts:15
↓ 2 callers
Function
split
(step: number, targetArr: T[])
packages/hooks/src/useHistoryTravel/index.ts:25
↓ 2 callers
Function
togglePageFullscreen
(fullscreen: boolean)
packages/hooks/src/useFullscreen/index.ts:64
↓ 2 callers
Function
unSelect
(item: T)
packages/hooks/src/useSelections/index.ts:56
↓ 2 callers
Function
updateFullscreenState
(fullscreen: boolean)
packages/hooks/src/useFullscreen/index.ts:49
↓ 2 callers
Function
updateSet
(updater: (set: Set<K>) => Set<K>)
packages/hooks/src/useSet/index.ts:8
↓ 2 callers
Function
useCounter
(initialValue: number = 0, options: Options = {})
packages/hooks/src/useCounter/index.ts:31
↓ 2 callers
Function
useDebounce
(value: T, options?: DebounceOptions)
packages/hooks/src/useDebounce/index.ts:5
↓ 2 callers
Function
useDebounceEffect
( effect: EffectCallback, deps?: DependencyList, options?: DebounceOptions, )
packages/hooks/src/useDebounceEffect/index.ts:7
↓ 2 callers
Function
useDeepCompareEffectWithTarget
( effect: EffectCallback, deps: DependencyList, target: BasicTarget<any> | BasicTarget<any>[], )
packages/hooks/src/utils/useDeepCompareWithTarget.ts:7
↓ 2 callers
Function
useDocumentVisibility
()
packages/hooks/src/useDocumentVisibility/index.ts:14
↓ 2 callers
Function
useDrop
(target: BasicTarget, options: Options = {})
packages/hooks/src/useDrop/index.ts:19
↓ 2 callers
Function
useEventEmitter
()
packages/hooks/src/useEventEmitter/index.ts:33
↓ 2 callers
Function
useFavicon
(href: string)
packages/hooks/src/useFavicon/index.ts:12
↓ 2 callers
Function
useGetState
(initialState?: S)
packages/hooks/src/useGetState/index.ts:15
↓ 2 callers
Function
useLockFn
(fn: (...args: P) => Promise<V>)
packages/hooks/src/useLockFn/index.ts:3
↓ 2 callers
Function
useMap
(initialValue?: Iterable<readonly [K, T]>)
packages/hooks/src/useMap/index.ts:4
↓ 2 callers
Function
useMutationObserver
( callback: MutationCallback, target: BasicTarget, options: MutationObserverInit = {}, )
packages/hooks/src/useMutationObserver/index.ts:6
↓ 2 callers
Function
useNetwork
()
packages/hooks/src/useNetwork/index.ts:44
↓ 2 callers
Function
useResetState
( initialState: S | (() => S), )
packages/hooks/src/useResetState/index.ts:9
↓ 2 callers
Function
useSafeState
(initialState?: S | (() => S))
packages/hooks/src/useSafeState/index.ts:9
↓ 2 callers
Function
useSet
(initialValue?: Iterable<K>)
packages/hooks/src/useSet/index.ts:4
↓ 2 callers
Function
useStorageState
(key: string, options: Options<T> = {})
packages/hooks/src/createUseStorageState/index.ts:22
↓ 2 callers
Function
useThrottle
(value: T, options?: ThrottleOptions)
packages/hooks/src/useThrottle/index.ts:5
↓ 2 callers
Function
useThrottleEffect
( effect: EffectCallback, deps?: DependencyList, options?: ThrottleOptions, )
packages/hooks/src/useThrottleEffect/index.ts:7
↓ 2 callers
Function
useTitle
(title: string, options: Options = DEFAULT_OPTIONS)
packages/hooks/src/useTitle/index.ts:13
↓ 2 callers
Function
useTrackedEffect
(effect: Effect<T>, deps?: [...T])
packages/hooks/src/useTrackedEffect/index.ts:23
↓ 2 callers
Function
useWebSocket
(socketUrl: string, options: Options = {})
packages/hooks/src/useWebSocket/index.ts:34
↓ 2 callers
Function
useWhyDidYouUpdate
(componentName: string, props: IProps)
packages/hooks/src/useWhyDidYouUpdate/index.ts:5
↓ 2 callers
Function
value
()
packages/hooks/src/useReactive/__tests__/index.spec.tsx:260
↓ 1 callers
Function
Row
(index: number, item: any)
packages/hooks/src/useDynamicList/demo/demo1.tsx:17
↓ 1 callers
Function
Row
(index: number, item: any)
packages/hooks/src/useDynamicList/demo/demo3.tsx:20
↓ 1 callers
Function
Row
(index: number, item: any)
packages/hooks/src/useDynamicList/demo/demo2.tsx:34
↓ 1 callers
Function
_backward
(step: number = -1)
packages/hooks/src/useHistoryTravel/index.ts:84
↓ 1 callers
Function
_forward
(step: number = 1)
packages/hooks/src/useHistoryTravel/index.ts:72
↓ 1 callers
Function
_getCache
(key: string, params: any[] = [])
packages/hooks/src/useRequest/src/plugins/useCachePlugin.ts:33
↓ 1 callers
Function
_setCache
(key: string, cachedData: CachedData)
packages/hooks/src/useRequest/src/plugins/useCachePlugin.ts:24
↓ 1 callers
Function
calcLeft
(target?: TDate)
packages/hooks/src/useCountDown/index.ts:23
↓ 1 callers
Function
callToggle
(hook: any)
packages/hooks/src/useToggle/__tests__/index.spec.ts:5
↓ 1 callers
Function
camelToKebab
(str)
packages/hooks/gulpfile.js:8
↓ 1 callers
Function
cancelAnimationFrameIsNotDefined
(t: any)
packages/hooks/src/useRafTimeout/index.ts:34
↓ 1 callers
Function
cancelAnimationFrameIsNotDefined
(t: any)
packages/hooks/src/useRafInterval/index.ts:31
↓ 1 callers
Function
cancelTimeout
()
packages/hooks/src/useRequest/src/plugins/useLoadingDelayPlugin.ts:11
↓ 1 callers
Function
changeCurrent
(c: number)
packages/hooks/src/usePagination/index.ts:49
↓ 1 callers
Function
changeSearchType
(type: any)
packages/hooks/src/useAntdTable/__tests__/index.spec.ts:62
↓ 1 callers
Function
changeWidth
(width: number)
packages/hooks/src/useResponsive/__tests__/index.spec.ts:6
↓ 1 callers
Function
checkIfAllInShadow
(targets: BasicTarget[])
packages/hooks/src/utils/getDocumentOrShadow.ts:6
↓ 1 callers
Function
clearAll
()
packages/hooks/src/useSelections/index.ts:100
↓ 1 callers
Function
clearRafInterval
(handle: Handle)
packages/hooks/src/useRafInterval/index.ts:35
↓ 1 callers
Function
clearRafTimeout
(handle: Handle)
packages/hooks/src/useRafTimeout/index.ts:38
↓ 1 callers
Function
configResponsive
(config: ResponsiveConfig)
packages/hooks/src/useResponsive/index.ts:49
↓ 1 callers
Function
countKeyByEvent
(event: KeyboardEvent)
packages/hooks/src/useKeyPress/index.ts:157
↓ 1 callers
Function
diffTwoDeps
(deps1?: DependencyList, deps2?: DependencyList)
packages/hooks/src/useTrackedEffect/index.ts:10
↓ 1 callers
Function
downMouse
(x: number, y: number, options?: MouseEventInit)
packages/hooks/src/useTextSelection/__tests__/index.spec.ts:7
↓ 1 callers
Function
dumpIndex
(step: number, arr: T[])
packages/hooks/src/useHistoryTravel/index.ts:11
↓ 1 callers
Function
emitDeclaration
(sourceFile: string)
packages/hooks/src/__tests__/refTypes.spec.ts:5
↓ 1 callers
Function
execute
()
packages/hooks/src/useAsyncEffect/index.ts:22
↓ 1 callers
Function
fieldAdapter
(field: Field)
packages/hooks/src/useFusionTable/fusionAdapter.ts:4
↓ 1 callers
Function
genDesc
(mdPath)
packages/hooks/gulpfile.js:12
↓ 1 callers
Function
genFilterKey
* 判断按键是否激活 * @param [event: KeyboardEvent]键盘事件 * @param [keyFilter: any] 当前键 * @returns string | number | boolean
packages/hooks/src/useKeyPress/index.ts:176
↓ 1 callers
Function
genKeyFormatter
* 键盘输入预处理方法 * @param [keyFilter: any] 当前键 * @returns () => Boolean
packages/hooks/src/useKeyPress/index.ts:219
↓ 1 callers
Function
genMetaData
()
packages/hooks/gulpfile.js:26
↓ 1 callers
Function
get
(key: K)
packages/hooks/src/useMap/index.ts:30
↓ 1 callers
Function
getCache
(key: CachedKey)
packages/hooks/src/useRequest/src/utils/cache.ts:40
↓ 1 callers
Function
getCachePromise
(cacheKey: CachedKey)
packages/hooks/src/useRequest/src/utils/cachePromise.ts:4
↓ 1 callers
Function
getClientHeight
(el: Document | Element)
packages/hooks/src/utils/rect.ts:19
↓ 1 callers
Function
getData
(params: PaginationType)
packages/hooks/src/useSelections/demo/demo3.tsx:57
↓ 1 callers
Function
getDataFromServer
(props: PaginationType)
packages/hooks/src/useSelections/demo/demo3.tsx:29
↓ 1 callers
Function
getDocumentOrShadow
(target: BasicTarget | BasicTarget[])
packages/hooks/src/utils/getDocumentOrShadow.ts:26
↓ 1 callers
Function
getHook
(initialValue?: T, compareFunction?: ShouldUpdateFunc<T>)
packages/hooks/src/usePrevious/__tests__/index.spec.ts:7
↓ 1 callers
Function
getInitValue
()
packages/hooks/src/useSet/index.ts:5
← previous
next →
101–200 of 538, ranked by callers