0

在实现自定义 RouteReuseStrategy 时,我希望能够调用自定义组件方法:

onRouteDetach() {}
onRouteAttach() {}

我可以在 shouldAttach RouteReuseStrategy 方法上调用 onRouteAttach。

我可以在哪里以及如何调用 onRouteDetach?

4

0 回答 0