Skip to content

v4.4.0-beta.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@mjackson mjackson released this 14 Oct 03:47

Getting closer to 4.4 final! We've received some great feedback during the past few weeks on the 4.4 beta. Please keep it coming :)

Features

  • Both our CJS and ESM builds now use Rollup, which means they are smaller and should be easier to consume. Requiring individual files (e.g. require('react-router/Route')) from any of our packages is no longer supported.
  • We now provide a pre-built production-ready CJS and ESM builds instead of requiring consumers to build it themselves.

Fixes

  • Eliminate all warnings when using the router under React 16's <StrictMode>. In fact, we now wrap all our tests in <StrictMode>!
  • Don't leak memory when a <Router> is rendered server side (introduced in a previous 4.4 beta).

Enjoy! 😅