Hello, I am using reselect heavily and I am ok with it.
The stack from this pov is React Redux + Redux Saga + Reselect;
Now and then I am passing variables like this:
import{createSelector}from'reselect';...constgetStuff=state=>state.stuffReducer;constsParams=(state,someIds=[])=>someIds;// <- as variables;exportconstsomeSelector=createSelector(sParams,getStuff,(someIds,stuff)=>{...});
(perhaps it could be optimized when using params, memoize those too with no extra boiler-plate)
Then import the selector in saga using "select" or in component using "useSelector" and that's it.
Hello, I am using reselect heavily and I am ok with it.
The stack from this pov is React Redux + Redux Saga + Reselect;
Now and then I am passing variables like this:
(perhaps it could be optimized when using params, memoize those too with no extra boiler-plate)
Then import the selector in saga using "select" or in component using "useSelector" and that's it.
When needed I make use of "reselect-map" ( github.com/HeyImAlex/reselect-map ) which is awesome in some scenarios.
I find it very comfortable combining selectors in reselect.
Good luck and keep us informed on this!