Webpack + React router dynamic routing - how to catch require loading exception with require.ensure
I'm using the react/react-router/webpack stack with dynamic routing between my different pages of the app which means every page loads asynchronously by demand. Everything works great but when I deploy a new version, my current active users who didn't fetch all of the Js file of all the pages will get stuck once the'll try to navigate to another page they haven't visited yet. EXAMPLE lets say I have a code split app with the following .js generated files and md5 (for cache busting): main.123.js profile.456.js User visits my main page and gets only main.123.js . In the meantime I deploy a new