state-management

Choose the right state solution for each use case.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "state-management" with this command: npx skills add redpanda-data/console/redpanda-data-console-state-management

State Management

Choose the right state solution for each use case.

Activation Conditions

  • Managing global state

  • Persisting state across navigation

  • Cross-component data sharing

  • Questions about Zustand vs React Query

Quick Reference

Action Rule

Read from store use-zustand-selectors.md

Persist state use-zustand-persist.md

Fetch server data use-react-query-for-server.md

Decision Tree

Is it server data (API response)? ├── Yes → React Query / Connect Query │ (caching, refetching, invalidation) └── No → Is it URL state? ├── Yes → React Router │ (search params, path params) └── No → Is it form state? ├── Yes → React Hook Form │ (validation, submission) └── No → Is it shared across components? ├── Yes → Zustand │ (global, persisted) └── No → useState / useReducer (local component state)

Rules

See rules/ directory for detailed guidance.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

tanstack-router-migration

No summary provided by upstream source.

Repository SourceNeeds Review
General

react-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

api-patterns

No summary provided by upstream source.

Repository SourceNeeds Review
General

e2e-tester

No summary provided by upstream source.

Repository SourceNeeds Review