The catalog below is generated from the same Dart metadata used by the sidebar and completeness tests.
Framework
Foundation
useLatestKeeps the latest value in a stable reference without rebuilding.
useDisposableCreates, owns, and disposes a resource with keyed identity.
useExternalStoreSubscribes to immutable snapshots from an external store.
useInheritedReads and watches the nearest typed Jaspr inherited component.
useImperativeHandlePublishes a keyed imperative handle through an ObjectRef.
useTimeoutInvokes the latest callback once after a client-side delay.
useIntervalInvokes the latest callback repeatedly on a client-side interval.
Primitives
useStateCreates an owned ValueNotifier that rebuilds the component when changed.
useEffectRuns a synchronous client-side effect with optional cleanup.
usePostFrameEffectRuns a client-side effect after the next completed frame.
useMemoizedCaches a computed value until its ordered keys change.
useCallbackKeeps a callback instance stable until its ordered keys change.
useRefPreserves a mutable cell without scheduling rebuilds.
useValueChanged
Runs a transformation when a value changes and retains its result.
Lifecycle & state
Convenience state
useToggleOwns boolean state with set, toggle, and reset operations.
useCounter
Owns integer state with increment, decrement, set, and reset operations.
useListOwns a list with stable mutation methods and an unmodifiable view.
useMapOwns a map with stable mutation methods and an unmodifiable view.
useSetOwns a set with stable mutation methods and an unmodifiable view.
useQueueOwns a FIFO queue with enqueue, dequeue, replace, and clear operations.
useEffectOnceRuns an effect once during the first browser-client build.
useMountRuns a cleanup-free callback once during the first client build.
useUnmountRuns the latest callback when the client hook is removed.
useUpdateEffect
Runs an effect for client updates while skipping the initial build.
Async
Actions
Listenables
useListenableRebuilds when a Jaspr Listenable notifies.
useListenableSelectorRebuilds only when a selected Listenable value changes.
useValueNotifier
Creates and disposes an owned ValueNotifier without subscribing to it.
useValueListenableSubscribes to a ValueListenable and returns its current value.
useOnListenableChangeRuns the latest callback whenever a Listenable notifies.
Browser lifecycle
useDocumentVisibilityTracks whether the browser document is visible or hidden.
useOnDocumentVisibilityChange
Runs a callback after the document visibility changes.
usePreferredColorScheme
Tracks the browser preference for a light or dark color scheme.
useOnPreferredColorSchemeChange
Runs a callback when the preferred color scheme changes.
useMediaQueryTracks whether the browser matches an arbitrary media query.
useOnMediaQueryChange
Runs a callback after an arbitrary media-query result changes.
usePreferredMotionTracks the browser preference for reduced motion.
useOnPreferredMotionChange
Runs a callback when the preferred-motion setting changes.
Browser DOM
useNodeKeyCreates a stable GlobalNodeKey for browser DOM hooks.
useFocusTracks and imperatively controls focus for a keyed element.
useFocusWithinTracks focus on a keyed element or any descendant.
useActiveElementTracks the active element in the browser document.
useAbortControllerOwns and automatically aborts a browser AbortController.
useAnimationFrameRuns the latest callback on browser animation frames.
useHistoryStateObserves and controls same-document session history.
useClipboardOwns plain-text Clipboard API operation state.
useElementSizeObserves the rendered size of a keyed browser element.
useWindowSizeTracks the browser viewport size with optional debouncing.
useIntersection
Observes whether and how much a keyed element intersects its root.
useEventListenerOwns a typed native DOM event listener.
useOnClickOutsideRuns a callback for pointer presses outside keyed elements.
useHoverTracks whether a pointer is hovering a keyed element.
useMutationObserverObserves DOM mutations beneath a keyed node.