title: Adding a callback to a Redux Reducer
body: <p>Would there be anything wrong/anti-pattern-ish (in terms of '<em>thinking-in-react/redux</em>') in added a callback to the <code>action.data</code> passed into an action?</p>
  
  <pre><code>// reducer
  ACTION_FOR_REDUCER() {
    var x = 123
    if ( action.data.callback ) action.data.callback( x )
    return {
      something: action.data.somedata
    }
  },
  </code></pre>
  
  <p>Then accessing that data later in the App when the action is called (in an container perhaps)</p>
  
  <pre><code>// later in the app
  this.props.dispatch(changeSomething({
    somedata: somedata,
    callback: (x) =&gt; { console.log(x) }
  }))    
  </code></pre>