Open williamboman opened 7 years ago
Thanks for open-sourcing this! We use almost the exact same stack as you (both front and back) and learned a lot from looking at your implementations.
What's your thoughts on using selectors everywhere, for everything, e.g.:
connect(state => ({ activeUser: getActiveUser(state), })(Login)
Or do you think selectors only should be used to slice parts of the state, preferably via memoized reselect selectors? Or not at all? Where would you define these selectors, I was thinking in the same file as its corresponding reducer?
reselect
I appreciate any response, thanks!
Thanks for open-sourcing this! We use almost the exact same stack as you (both front and back) and learned a lot from looking at your implementations.
What's your thoughts on using selectors everywhere, for everything, e.g.:
Or do you think selectors only should be used to slice parts of the state, preferably via memoized
reselect
selectors? Or not at all? Where would you define these selectors, I was thinking in the same file as its corresponding reducer?I appreciate any response, thanks!