State Management
State Management
Guidelines for managing state in LaunchApp.dev.
React Query
Data fetching and caching are handled with React Query. Use hooks from @repo/api-hooks
to interact with the API across web and mobile.
Local state
For simple local state, rely on React hooks and context. Keep modules small and avoid global mutable singletons.
Cross-platform tips
Share hooks and utilities in packages to keep logic consistent between web and mobile when possible.