Skip to main content

State Management Overview

The application uses a hybrid state management approach combining multiple strategies:

StrategyUse CaseLocation
React ContextGlobal/shared statesrc/context/
React Hook FormForm statesrc/components/forms/
TanStack TableTable state (filters, sorting, pagination)src/components/tables/
useState HookLocal component stateThroughout components
URL Search ParamsShareable state (filters, pagination)Next.js navigation
Server StateInitial data from Server ComponentsPassed as props