Merge pull request #9530 from rogierschouten/react-router-getcomponents

getComponent/getComponents now takes state parameter instead of location
This commit is contained in:
Mohamed Hegazy
2016-06-21 14:53:00 -07:00
committed by GitHub
+2 -2
View File
@@ -144,8 +144,8 @@ declare namespace ReactRouter {
path?: RoutePattern
component?: RouteComponent
components?: RouteComponents
getComponent?: (location: H.Location, cb: (error: any, component?: RouteComponent) => void) => void
getComponents?: (location: H.Location, cb: (error: any, components?: RouteComponents) => void) => void
getComponent?: (nextState: RouterState, cb: (error: any, component?: RouteComponent) => void) => void
getComponents?: (nextState: RouterState, cb: (error: any, components?: RouteComponents) => void) => void
onEnter?: EnterHook
onLeave?: LeaveHook
onChange?: ChangeHook