react-router icon indicating copy to clipboard operation
react-router copied to clipboard

[Migration Guide] Suggest upgrading history to 5@next

Open kysley opened this issue 6 years ago • 1 comments

Version

Upgrading from v5 -> v6-alpha.1

Test Case

Working example with history@next (5.0.0-beta.4)[1] https://codesandbox.io/s/zen-bas-9yy9h

Breaking example with [email protected][2] https://codesandbox.io/s/zen-elgamal-1ug1y

Steps to reproduce

Navigating around on example [1] works as expected. Navigating around on example [2] throws Cannot read property 'pathname' of undefined

I ran into this error in a Greenfield project we are testing this alpha on. In hindsight, upgrading history along with react-router and react-router-dom makes sense, but it wasn't our first guess.

kysley avatar Feb 05 '20 16:02 kysley

this should be resolved with alpha 1

Hotell avatar Feb 05 '20 19:02 Hotell