UTA DevHub

State Management

Patterns and tools for managing application state effectively

State Management

Overview

Effective state management is crucial for building maintainable and performant React Native applications. Our architecture follows a clear separation of concerns, with specialized tools for different types of state. The foundation of our state management approach is the Golden Rule: Server state belongs in TanStack Query, Client state belongs in Zustand, Component state belongs in React.

Key State Management Documentation

State Management Principles

Our state management approach is guided by these core principles:

  1. Separation of Concerns - Different types of state have different requirements and should use specialized tools
  2. Data Locality - Keep state as close as possible to where it's used
  3. Minimal Re-renders - Design state to prevent unnecessary component re-renders
  4. Type Safety - Leverage TypeScript for fully typed state management
  5. Developer Experience - Prioritize simple APIs with minimal boilerplate

On this page