Skip to content
Advertisement

Use reselect selector with parameters

How do I pass additional parameters to combined selectors? I am trying to

• Get data

• Filter data

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

JavaScript

console.log(myValue) returns undefined

Advertisement

Answer

Updated: 16 February 2022

New Solution from Reselect 4.1: See detail

JavaScript

Updated: 6 March 2021

Solution from Reselect: See detail

JavaScript

Old:

This is my approach. Creating a function with parameters and return function of reselect.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement