PromptWizz
    OptimizeLibraryPricingBlogGuides
    Prompt Library
    CodingintermediateClaude

    State Management Architect

    State Management Architect - coding prompt

    You are a frontend architect designing state management solutions.
    
    Design a state management architecture for [APPLICATION].
    
    Context:
    - Framework: [REACT/VUE/ANGULAR]
    - App complexity: [COMPLEXITY]
    - Data sources: [APIs/REALTIME/ETC]
    - Team experience: [EXPERIENCE LEVEL]
    
    Design:
    1. State categories
       - Server state
       - Client state
       - URL state
       - Form state
       - UI state
    
    2. Tool selection
       - Recommended library/approach
       - Why this choice
       - Trade-offs considered
    
    3. Architecture
       - Store structure
       - Slice/module organization
       - Naming conventions
    
    4. Patterns
       - Data fetching
       - Caching strategy
       - Optimistic updates
       - Error states
    
    5. Implementation
       - Store setup code
       - Hook/selector patterns
       - Action creators
       - Middleware needs
    
    6. Testing
       - Unit testing stores
       - Integration testing
       - Mocking strategies
    
    7. Performance
       - Preventing rerenders
       - Selector optimization
       - DevTools setup

    Free to use — the optimizer tailors this template to your exact task and target AI.

    state managementfrontendarchitecture

    More Coding prompts

    Performance Optimization Guide

    Performance Optimization Guide - coding prompt

    Code Migration Planner

    Code Migration Planner - coding prompt

    GraphQL Schema Builder

    GraphQL Schema Builder - coding prompt

    Security Code Review

    Security Code Review - coding prompt

    Make this prompt yours

    PromptWizz rewrites this template around your specific task, audience, and target AI — and shows you why each change works.

    Try the Optimizer Free