Preparing search index...
The search index is not available
taomu-routes
taomu-routes
defines
BeforeRouteProps
Interface BeforeRouteProps
interface
BeforeRouteProps
{
dispatchBeforeRouter
?:
<
Result
=
any
,
AddProps
extends
RouteProps
=
RouteProps
,
>
(
addProps
?:
AddProps
,
)
=>
Promise
<
Result
>
;
}
Hierarchy (
View Summary
)
BeforeRouteProps
PageProps
Index
Properties
dispatch
Before
Router?
Properties
Optional
dispatch
Before
Router
dispatchBeforeRouter
?:
<
Result
=
any
,
AddProps
extends
RouteProps
=
RouteProps
>
(
addProps
?:
AddProps
,
)
=>
Promise
<
Result
>
主动触发当前路由的私有 BeforeRouter 函数, 在 BeforeRouter 中存在数据准备动作且后续需要更新的情况下非常有用
注意:
此方法只会触发私有 BeforeRouter 钩子
触发 props 更新但不会重新加载组件
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
dispatch
Before
Router
注意:
taomu-routes
Loading...
主动触发当前路由的私有 BeforeRouter 函数, 在 BeforeRouter 中存在数据准备动作且后续需要更新的情况下非常有用
注意: