app-ui-redux

Manage Unity App UI Redux state with slices, reducers, and async thunks.

9|3|Updated May 8, 2025
One-click install
npx skills add https://github.com/needle-mirror/com.unity.dt.app-ui --skill app-ui-redux-needle-mirror
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: app-ui-redux
Source: https://github.com/needle-mirror/com.unity.dt.app-ui/tree/main/Plugins~/skills/app-ui-redux
Command: npx skills add https://github.com/needle-mirror/com.unity.dt.app-ui --skill app-ui-redux-needle-mirror

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

App UI Redux provides a structured approach to managing global state in Unity apps, reducing coupling and making state changes observable and testable.

Core Features & Use Cases

  • Centralized store creation with multiple slices
  • Immutable state updates using Redux patterns (slices, reducers, async thunks, middleware)
  • Async thunk handling with pending/fulfilled/rejected states and extra reducers
  • Middleware integration and Redux DevTools support for debugging
  • MVVM-friendly patterns with subscriptions and selectors for derived state
  • Clear conventions to prevent direct state mutation

Quick Start

Create a new store with a single counter slice and dispatch Increment to observe the state update.

Frequently Asked Questions about app-ui-redux

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage global state in Unity across multiple components?

Global state in Unity is managed through a centralized store using Redux patterns. This store coordinates slices, reducers, and thunks to handle cross-component updates predictably and ensure strict immutability.

What is the best way to handle asynchronous data workflows in Unity state management?

Asynchronous workflows in Unity state management are handled using async thunks. Thunks dispatch pending, fulfilled, and rejected states to extra reducers, ensuring predictable updates for asynchronous data fetching and operations.

Does Redux state management work with Unity MVVM patterns?

Redux state management integrates with Unity MVVM patterns by using subscriptions and selectors. Selectors derive state for views, while subscriptions notify components of updates, maintaining a clean separation of concerns.

How do I prevent direct state mutation in Unity Redux?

Direct state mutation in Unity Redux is prevented by enforcing strict immutability conventions. State updates must flow through slices and reducers using AddCase-driven logic, ensuring changes are observable and testable.

Can I use Redux DevTools to debug Unity app state?

Redux DevTools are supported for debugging Unity app state. The centralized store integrates with DevTools and middleware, allowing developers to inspect state changes, monitor dispatched actions, and trace updates.

When do I need middleware for Unity Redux state coordination?

Middleware is needed for Unity Redux state coordination when extending store capabilities for complex workflows. It intercepts dispatched actions before they reach reducers, enabling side effects, logging, and asynchronous thunk handling.