redux-friendlist-demo
redux-friendlist-demo copied to clipboard
Breaking change in Redux 2.0
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.
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>
+1
+1