redux-friendlist-demo icon indicating copy to clipboard operation
redux-friendlist-demo copied to clipboard

Breaking change in Redux 2.0

Open dbertella opened this issue 9 years ago • 3 comments

Thanks for the great tutorial, I didn't find around something like this. I was trying to follow but if you install latest dependency the code will not work anymore. Are you planning to update the example?

I didn't find a solution to make the code work yet but for example I found out that with redux 2.0 you need to create the store this way:

createStore = compose(
    require('redux-devtools').devTools(),
    require('redux-devtools').persistState(
      window.location.href.match(/[?&]debug_session=([^&]+)\b/)
    )
  )(createStore);

I'm still trying to work this out, in case I'll let you know if I succeed.

dbertella avatar Nov 24 '15 13:11 dbertella

Found out also that with React 0.14 and later versions, you no longer need to wrap child into a function.

so this:

       <Provider store={store}>
          {() => <FriendListApp /> }
        </Provider>

become this:

       <Provider store={store}>
          <FriendListApp /> 
        </Provider>

dbertella avatar Nov 24 '15 14:11 dbertella

+1

josephmisiti avatar Apr 26 '16 03:04 josephmisiti

+1

donnie-coleman avatar Jul 03 '16 02:07 donnie-coleman