useEffectAfterMount
Runs an effect only after the component has mounted, skipping the very first
useApi
Performs an HTTP request and manages its loading, data, and error
useOutsideClick
Invokes a callback whenever a click or touch event occurs outside a given
useToggleState
Manages a boolean state with a single toggle function. A minimal, ergonomic
useControlledState
Implements the controlled/uncontrolled component pattern in a single hook.
usePersistedState
Behaves like useState, but automatically persists the value to
useDebounce
Debounces a callback so it only runs after a specified delay has passed since
useDocVisible
Tracks whether the browser tab/document is currently visible to the user,
useMounted
Tracks whether a component is currently mounted, and optionally runs
useSequentialRequest
Wraps an async request function so that only the most recent call ever