Fluxxor Autobind
Description
AutoBind plugin for Fluxxor to help prevent spaghetti props wiring.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Fluxxor-AutoBind
An auto-binding plugin for Fluxxor to prevent spaghetti props wiring.
Installation
`npm install fluxxor-autobind`
Usage
Usage requires three simple steps:
- Install
AutoBindinto your Flux instance after initializing it.
var flux = new Fluxxor.Flux(stores, actions);
require('fluxxor-autobind').install(flux);
- Specify properties you want to expose in your stores.
var ExampleStore = Fluxxor.createStore({
// This is the only piece of configuration you need to add.
// Names must be unique, and must be equal to the property
// name on the store.
autoBind: ['foo', 'bar'],
// ...
})
- Reference these properties in your views.
var AutoBind = require('fluxxor-autobind');
var DeeplyNestedView = React.createClass({
mixins: [
// Flux must be available to the view.
FluxChildMixin,
// Specify the properties you want to be bound to this
// component's state.
AutoBind.Mixin('foo', 'bar')
],
render: function() {
return {this.state.foo + " " + this.state.bar};
}
})
Rationale
When developing a Flux application, over time you can end up with a ton of properties going from your root component down to deeply nested components. It can make adding simple properties to your stores and getting them to your components very complicated, as each intermediate component has to pass the prop down. And, unless your app is using immutable values, `shouldComponentUpdate` can start to get massively complicated.
Fluxxor's solution for this is to use `StoreWatchMixin` and `getStateFromFlux` to accomplish this.
I have found in practice that this is error-prone (ever forget to specify the store's name in StoreWatchMixin?) and could be simplified via a simple property registry. Since property names are (usually) unique per store, it makes sense to enter the
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11