Trying to reproducing the
ReactUpdates: must inject a batching strategy
error I've been getting when updating the state of the root component, with React built as an external module with browserify.
- Run
make - Put
console.log('ReactUpdatesInjection.injectBatchingStrategy', _batchingStrategy);insideReactUpdatesInjection.injectBatchingStrategy(grep forinjectBatchingStrategy: function(_batchingStrategy)) in bothprod.jsandreact.js. - Open
dev.htmlandprod.html - Both files show the above
console.logoutput, which means thatinjectBatchingStrategyhas been successufully called in both cases, and leads me to think that the issue might be with react-router-component not playing well with browserify. I will investigate further and update this Gist.