Skip to content

Commit da433a9

Browse files
committed
update warning about custom histories
1 parent 9372d36 commit da433a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/Router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const Router = React.createClass({
9494
if (history) {
9595
warning(false, 'It appears you have provided a deprecated history object to `<Router/>`, please use a history provided by ' +
9696
'React Router with `import { browserHistory } from \'react-router\'` or `import { hashHistory } from \'react-router\'`. ' +
97-
'If you are using a valid custom history please set `history.__v2_compatible__ = true`. http://tiny.cc/router-usinghistory')
97+
'If you are using a custom history please create it with `useRouterHistory`, see http://tiny.cc/router-usinghistory for details.')
9898
createHistory = () => history
9999
} else {
100100
warning(false, '`Router` no longer defaults the history prop to hash history. Please use the `hashHistory` singleton instead. http://tiny.cc/router-defaulthistory')

0 commit comments

Comments
 (0)