ExploreUse cases

Data fetching & mutations

HTTP load, polling, retry, pagination, infinite scroll.

Async & APIIntermediateSSR-safe

useFetch

Declarative fetch with abort & races handled.

import { useFetch } from '@/hooks';
hooks/async/useFetch.tsOpen guide
Async & APIIntermediateSSR-safe

useApi

useFetch with optional base URL.

import { useApi } from '@/hooks';
hooks/async/useApi.tsOpen guide
Async & APIIntermediateSSR-safe

useAsync

Auto-run async function with status.

import { useAsync } from '@/hooks';
hooks/async/useAsync.tsOpen guide
Async & APIIntermediateSSR-safe

usePolling

Poll an async function on an interval.

import { usePolling } from '@/hooks';
hooks/async/usePolling.tsOpen guide