qlevar_router icon indicating copy to clipboard operation
qlevar_router copied to clipboard

Observers inside QRouterDelegate is not getting called when navigating between childs

Open tejHackerDEV opened this issue 2 years ago • 1 comments

Hi @SchabanBo, I passed an custom NavigationObserver class which extends RouteObserver<ModelRoute> into the observers array exposed by QRouterDelegate & I override the methods didPush, didReplace, didPop methods & added a print statements inside them. Now when I navigate between child's via bottom navigation (nested navigation) the observer which I made is not getting printed. But lets suppose say if I navigate between parent child's then observer is printing details so please look into this as this is very much needed as we are using FirebaseAnalytics & wanted to track the user screens using FirebaseAnalyticsObserver

tejHackerDEV avatar Oct 04 '22 10:10 tejHackerDEV

Hi @tejHackerDEV, That is right, at this time the observer is only assigned for the root navigator. I will change this, so you can pass an observer for every nested navigator.

SchabanBo avatar Oct 05 '22 12:10 SchabanBo

Added in 1.7.0

SchabanBo avatar Oct 27 '22 07:10 SchabanBo