title: React - Redux dispatch an action based on UI state
body: <p>In my React component reducer state I have a selectedTabIndex property, specifying what tab is currently active in my UI.</p>
  
  <pre><code>const deviceRankReducer = (state = {
      selectedIndex:1
  },action) ={
     //...
  }
  </code></pre>
  
  <p>In my Redux action I want to make an AJAX call based on the selected tab index.</p>
  
  <pre><code>class MyActions extends ReduxActionsBase {
       sendRequest(){
            if(state.selectedIndex === 0){
               //make call to resource A
            }else{
               //make call to resource B
            }
       }
  }
  </code></pre>
  
  <p>What is the best practice of sharing the information with the ReduxActionsBase without making an anti-pattern decision?</p>