Skip to main content

Hooks

Compilation of custom hooks that are common in our apps.

Version

Installation

NPM

npm install @availity/hooks

Yarn

yarn add @availity/hooks

Available Hooks

HookDescription
useCurrentUserReturns the current user
useCurrentRegionReturns the user's current region
useOrganizationsReturns organizations
usePermissionsReturns user permissions
useProvidersReturns providers
useMountRuns a function on mount/dismount
useTimeoutReturns true after a given delay
useToggleReturns a toggleable boolean
useUpdateNavSyncs route changes with the portal nav
useWindowDimensionsReturns window height and width
useStashReturns data from the Stash API
useEffectAsync(Deprecated) Async useEffect wrapper