Use reselect selector with parameters : <p>How do I pass additional parameters to combined selectors? I am trying to</p>

<p>• Get data</p>

<p>• Filter data</p>

<p>• Add custom value to my data set / group data by myValue</p>

<pre><code>export const allData = state =&gt; state.dataTable
export const filterText = state =&gt; state.filter.get('text')

export const selectAllData = createSelector(
  allData,
  (data) =&gt; data
)

export const selectAllDataFiltered = createSelector(
  [ selectAllData, filterText ],
  (data, text) =&gt; {
    return data.filter(item =&gt; {
      return item.name === text
    })
  }
)

export const selectWithValue = createSelector(
  [ selectAllDataFiltered ],
  (data, myValue) =&gt; {
    console.log(myValue)
    return data
  }
)

let data = selectWithValue(state, 'myValue')
</code></pre>

<p><code>console.log(myValue)</code> returns <code>undefined</code></p>
