I'm trying to bump React from 0.13.3 to 0.14.8, but my old setup doesn't work anymore. I've solved all issues very easily, but now I'm stuck and I can't find any hint in the upgrad guide(s).
Here is my setup:
const createElement = (Component, props) => <Component {...props} {...store.getState()}/>
const routes = <Router createElement{createElement} history={browserHistory}><Route>...</Route></Router>;
store.subscribe(() => ReactDOM.render(routes, containerElement));
So basically, everytime the store
changes, ReactDOM.render
is called and routes
is rendered. routes
should call createElement
on render and did just that in 0.13
, but not anymore in 0.14
. Only when the route/url changes, the UI is updated with the latest data.
Any idea where the problem is coming from (React, ReactRouter, Redux) and how to debug/fix are most welcome!