title: Redux: Data Source implementation
body: <p>I'm newbie in react and <a href="https://github.com/rackt/redux" rel="nofollow">redux</a>. </p>
  
  <p><strong>Question</strong>: what is the best way to implement "datasource" (similar to kendo-ui <a href="http://docs.telerik.com/kendo-ui/api/javascript/data/datasource" rel="nofollow">datasource</a>) in redux?</p>
  
  <p>I've tried to store all of my widgets datasources in one place (i've created datasource reducer) and "bind" datasources to it's widgets (like table widget, listview, combobox etc). Datasources must have it's own api (like addFilter, addSort, getFiltered etc) and also store applied filters and data too.</p>
  
  <p>I want to store all of datasources in redux store (that's why i need to create datasource and dispatch it's creation before widget  is created).</p>
  
  <p>The problem is when i create react-redux connector to my "smart" widget's container-component i need to send my datasource with props but at this moment datasource is not created. </p>
  
  <p>If i send dummy initial datasource (without dispatch it's creation and data filling) and then dispatch it and fill data to it on componentDidMount - my widget's render function called twice</p>
  
  <p>I think i need some kind of "wrapper" function but at now i have no idea how to do that.</p>
  
  <p>Maybe there is some examples of how to implement "datasources functionality"?</p>