reduxreact-reduxredux-thunkredux-devtoolsredux-devtools-extension

Only one reducer is being recognized in my reducer tree/state in my redux dev tools


Hi I am new to redux and I'm having trouble seeing my entire tree of reducers, so far I only see the getTopGames reducer in my redux dev tools and I cant figure out why I can't see anything else like shop, and getGameDetails. Since I set up my store and combined all my reducers shouldn't I see all the reducer states in my devtools? (Ex. getTopGames, under that shop, under that getGameDetails)??? Thank you for any help and insight here is the github link https://github.com/andrewjkim745/Twitch-Store this is my devtools

enter image description here

enter image description hereThis is where I define my store


Solution

  • This is happening because in INITIAL_STATE you've only define getTopGames reducer.

    enter image description here

    That's why initially you can only see the getTopGames reducer in your redux dev tools. Add your other reducers shop and getGameDetails in INITIAL_STATE then you'll be able to see them initially in your redux dev tools. Even if you don't, once you start performing actions from other reducers, you can see them in your redux dev tools.