Closed alecperkey closed 8 years ago
Um... it doesn't look like you're actually exporting makeUsersByAgencySelector
. Just stick an export
in front of that definition.
Yeah, you are right... Thanks... sorry it wasn't a more interesting problem to solve facepalm
Its because I imported it as a child property (with destructured syntax) when I only exported a default....
The guide must have some file like selectors/index.js which imports all the selectors as defaults and exports them as child properties
Do you really need use this pattern? Your selectors doesn't depend on props, so these selectors always will be correctly memoized.
Hi-- I've been stuck on this for a couple days now and hoping for some help.
I am trying to follow the pattern described at the section 'Sharing Selectors Across Multiple Components' at the bottom of http://redux.js.org/docs/recipes/ComputingDerivedData.html.
However, I am running into an error in my middleware (from @erikras' RRUHR boilerplate)
Is this because I'm using reselect wrong and that getUsersByAgency should be a function? Or rather, is the middleware needing adjustment to support this component-bound selector creation recipe?
The compiled code generating the error:
AgencyUserList.js
selectors/makeUsersByAgencySelector.js