getComponent/getComponents now takes state parameter instead of location

see
0cdee03a54
This commit is contained in:
Rogier Schouten
2016-06-02 12:00:24 +02:00
parent edb64e4a35
commit fceb0e37c0

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