Closed ed-snodgrass closed 3 years ago
Would love to work on this
@Goldenhub it's yours!
@Goldenhub can you link your PR to this issue?
Hello @demilolu , I've fixed this issue. Can it be closed?
@Goldenhub can you link your PR so I can take a look? Thanks!
@demilolu 👋 here is the pull request. https://github.com/Call-for-Code-for-Racial-Justice/Truth-Loop/pull/213
While the useSelector hook is super convenient it isn't an ideal situation to have all components accessing the store. It is likely a better pattern to have *Route component access the store and pass the data to the component. This will make testing the components simpler as well as allow components to be reused more easily.