- RouterSubscriber(state, opts): void
参数
- state: RouterState
- opts: {
deletedFetchers: string[];
flushSync: boolean;
viewTransitionOpts?: ViewTransitionOpts;
}deletedFetchers: string[]
flushSync: boolean
Optional
viewTransitionOpts?: ViewTransitionOpts
返回 void
订阅者函数签名,用于路由状态的更改