Skip to main content
Back to registry

state-management

supercent-io/skills-template

Distinguish between local and global state.

Installs10
Install command
npx skills add https://github.com/supercent-io/skills-template --skill state-management
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Distinguish between local and global state. Decision Criteria : Local State : Used only within a single component Global State : Shared across multiple components Example : Suitable for lightweight global state management. Example (Authentication Context): Usage : Simpler than Redux with less boilerplate. Installation : Example (Shopping Cart): Usage : Use when complex state logic and middleware are required. Installation : Example (Todo): Usage : Specialized for API data fetching and caching. State Immutability : Never mutate state directly Minimal State Principle : Do not store derivable values in state Single Source of Truth : Do not duplicate the same data in multiple places Excessive Props Drilling : Prohibited when passing props through 5+ levels Avoid Making Everything Global State : Prefer local state when sufficient Selective Subscription : Subscribe only to the state you need Clear Action Names : update → updateUserProfile Use TypeScript : Ensure type safety #state-management #React #Redux #Zustand #Context #global-state #frontend - Global State Required : Multiple components share the same data - Props Drilling Problem : Passing props through 5+ levels - Complex State Logic : Authentication, shopping cart, themes, etc. - State Synchronization : Sync server data with client state - Local State : Used only within a single component - Form input values, toggle states,...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does state-management do?

Distinguish between local and global state.

Is state-management good?

state-management does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does state-management work with?

state-management currently lists compatibility with Agent compatibility has not been published yet..

What are alternatives to state-management?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install state-management?

npx skills add https://github.com/supercent-io/skills-template --skill state-management

Related skills

More from supercent-io/skills-template

Related skills

Alternatives in Software Engineering