react-router
react-router copied to clipboard
[Feature]: Add invariant if history is not passed to HistoryRouter
What is the new or updated feature that you are suggesting?
Add invariant if history is not passed to HistoryRouter
Why should this feature be included?
Currently, using HistoryRouter without passing history
prop ends with TypeError: cannot read property action of undefined
, which isn't very helpful and looks like an error on RR's side, when in reality it's dev's fault.
Have same problem!