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.js
andreact.js
. - Open
dev.html
andprod.html
- Both files show the above
console.log
output, which means thatinjectBatchingStrategy
has 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.