Designing a State Management System
Restructuring state management for a complex application
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
My [APPLICATION_DESCRIPTION] application has state management issues with [Redux/Context API/Zustand/other]. Here is the current structure: [DESCRIBE_STRUCTURE]. Analyze the current problems (prop drilling, excessive re-renders, overly centralized state) and propose an optimized state architecture with code examples for the most common use cases.
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
Use Cases
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Pour un diagnostic efficace, accompagnez votre description d'un profilage React DevTools ou des métriques de rendu. Cela permet d'isoler les re-rendus inutiles et de justifier le choix entre Context et Zustand. Si votre état est très fréquent mais localisé, pensez à useReducer avec un store externalisé plutôt qu'un Context global.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
Headlines (Counter-Intuitive Angle)
Differentiation, saturated markets
Forecast key evolutions in your sector
Get a complete prospective analysis of your sector with PESTEL analysis, evolution scenarios, and strategic roadmap.
Bootstrap and Confidence Intervals
Estimating metric uncertainty
Incident Communication Protocol
Managing crisis communication in a school setting