Project pipeline for react-rsc-kit.
The goal is to grow the library in a way that strengthens its core identity: typed reusable React hooks, small utility components, and clear client/server boundaries.
- Rework
useFetchinto a production-safe primitive with abort support, configurable parsing, cache control, and better typing. - Normalize naming and API consistency across hooks:
useAsyncFnc->useAsyncFn,immidate->immediate, and alignuseGetScrollPositionnaming. - Review hooks that mutate inputs and decide whether they belong as React hooks or plain utilities, especially
useArray. - Expand test coverage across the existing public API before adding too many new exports.
- Tighten docs for client-only vs server-safe imports with examples for Next.js App Router and standard React apps.
-
useLocalStorage -
useSessionStorage -
usePrevious -
useControllableState -
useDisclosure -
useMediaQuery -
useWindowSize -
useResizeObserveroruseElementSize -
useLockBodyScroll -
useHotkeys -
useOnlineStatus -
usePageVisibility -
useIdle -
useReducedMotion -
useHydrated
-
useAbortableFetch -
usePolling -
useInfiniteScroll - Optional adapter package for TanStack Query interoperability instead of overloading the core package.
- Small async helpers such as
debounceFnandthrottleFn.
-
ClientOnly -
Portal -
VisuallyHidden -
composeRefs -
mergeRefs -
composeEventHandlers
- Add
Changesetsfor versioning and release notes. - Add
tsdfor public type tests. - Add
publintandarethetypeswrongto package validation. - Add bundle size checks with
size-limitor equivalent. - Add example apps for Next.js App Router and Vite.
- Modernize the docs app dependencies and keep docs aligned with the published API.
- Stabilize existing hooks and naming.
- Add storage, responsive, and lifecycle hooks.
- Add async/data helpers only after the base fetch story is solid.
- Add headless utilities that improve ergonomics without increasing maintenance too much.
- Raise package quality gates so every new export is tested, typed, and documented.