skills/smithery.ai/asyncredux-connector-pattern

asyncredux-connector-pattern

Installation
SKILL.md

Overview

The connector pattern separates store access logic from UI presentation. Instead of widgets directly accessing the store via context.state and context.dispatch(), a "smart" connector widget extracts store data and passes it to a "dumb" presentational widget through constructor parameters.

Why Use the Connector Pattern?

  1. Testing simplification - Test UI widgets without creating a Redux store by passing mock data
  2. Separation of concerns - UI widgets focus on appearance; connectors handle business logic
  3. Reusability - Presentational widgets function independently of Redux
  4. Code clarity - Widget code is not cluttered with state access and transformation logic
  5. Optimized rebuilds - Only rebuild when the view-model changes

The Three Components

1. ViewModel (Vm)

Contains only the data the UI widget requires. Extends Vm and lists equality fields:

Installs
1
First Seen
Apr 13, 2026
asyncredux-connector-pattern from smithery.ai