VEF Hooks
useAuthorizedItems
Filters config arrays by permission metadata.
useBreakpoints
Returns breakpoint state from a custom breakpoint configuration.
useCheckPermission
Returns a reusable function for imperative permission checks.
useDictionaryQuery
Fetches data-dictionary options through appContext.dictionaryQueryFn using an alias map.
Signature: useDictionaryQuery(keys, options?) => UseQueryResult<TData>.
Key behaviors:
keysis an alias map such as{ gender: "common.gender" }; each alias becomes a key in the resolveddata.datafollows React Query semantics — it isundefineduntil the query resolves.options.enableddefers fetching.options.selectreshapes the resolved alias map. Stabilizekeysandselectreferences to avoid invalidating React Query'sselectmemoization on each render.
For typical select usage prefer useDictionaryOptionsSelect, which wraps this hook and produces ready-to-spread SelectProps.
useDataOptionsQuery
Transforms query or dictionary data into normalized option structures, including pinyin-enhanced variants when needed.
Deep / Shallow Comparison Hooks
These hooks help when dependency arrays contain objects or arrays and default shallow reference checks are not enough:
useDeepCallbackuseDeepCompareuseDeepEffectuseDeepIsomorphicEffectuseDeepLayoutEffectuseDeepMemouseShallowCallbackuseShallowCompareuseShallowEffectuseShallowIsomorphicEffectuseShallowLayoutEffectuseShallowMemo
Event and Environment Hooks
Representative hooks in this group:
useDocumentEventuseEmitterEventuseLatestuseRafStateuseSingletonuseViewportSize
Query and Mutation State Hooks
useHasFetchinguseHasMutating
These are especially useful for page-level loading coordination and disabling repeated actions while requests are running.