目录

What are the page lifecycles managed by Navigation, and through which callback can I listen for the page lifecycles?

Navigation, as a router container, hosts its lifecycle within the NavDestination component and exposes lifecycle events as component events. Navigation manages the page lifecycle, including onAppear (a universal lifecycle event), onShown (executed after the NavDestination component layout is displayed), and onActive (triggered when the NavDestination component becomes active). For details, please refer to the following document. You can listen for the lifecycle of the NavDestination component through Class (UIObserver).

Reference

Component Navigation (Navigation) (Recommended)

Page Lifecycle