Skip to content
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.

Commit

Permalink
feat: add link initialState
Browse files Browse the repository at this point in the history
  • Loading branch information
troch committed Jul 9, 2015
1 parent ce7c420 commit a0d162f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/link-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function linkFactory(router) {
routeOptions: {}
}

let getInitialState = (props) {
let initialState = (props) {
return {
active: router.isActive(props.routeName, props.routeParams, props.activeStrict)
};
Expand Down Expand Up @@ -81,5 +81,5 @@ function linkFactory(router) {
return element('a', {href, className, onClick}, [props.label])
}

return {propTypes, defaultProps, shouldUpdate, afterMount, beforeUnmout, render}
return {propTypes, defaultProps, initialState, shouldUpdate, afterMount, beforeUnmout, render}
}

0 comments on commit a0d162f

Please sign in to comment.