Skip to content

Commit

Permalink
[fixed] Removed <Link> warning about no history in context
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Oct 6, 2015
1 parent 111caf9 commit 160c5ba
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions modules/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,6 @@ class Link extends React.Component {
this.context.history.pushState(this.props.state, this.props.to, this.props.query)
}

componentWillMount() {
warning(
this.context.history,
'A <Link> should not be rendered outside the context of history ' +
'some features including real hrefs, active styling, and navigation ' +
'will not function correctly'
)
}

render() {
const { history } = this.context
const { activeClassName, activeStyle, onlyActiveOnIndex, to, query, state, onClick, ...props } = this.props
Expand Down

0 comments on commit 160c5ba

Please sign in to comment.