Open david-j-davis opened 6 years ago
Hi David,
Thanks for the question!
This is a really interesting implementation question. At first glance, nothing is jumping out at me as wrong from the code provided. Were any changes made to the PostReducer?
If you want to upload your changes to GitHub I could run them locally and see if I can get to the bottom of it. Thanks!
Best, Nick
No changes to PostReducer. I think it's because combineReducers is oppinionated. Im going to submit a pull request for your review.
Sounds great! Thanks for looking into this!
As you can tell, I didnt change much of the code but the combinereducer function breaks the build. Any thoughts?
Hey Nick, I've tested your code with the implementation of index.js inside /reducers with:
And inside store.js:
I'm getting the following error:
No reducer provided for key "PostReducer" Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers. TypeError: Cannot read property 'map' of undefined
Thoughts about the problem?