wealthfront/magellan

Expose callback for completed transitions

Closed this issue · 1 comments

we have navigationPropagator.afterNavigation but it fires as the (animated) transition is beginning. Currently the only way to await the end of a transition is transitionFinished at the individual Navigable level

this new callback probably belongs at the navigator level. But something global would be useful too, for elements that don't have access to each navigator (e.g. we want to change Toolbar UI whenever a navigation finishes "somewhere")

two options to achieve this. 1.) use a static, global event system similar to how currentScreen works today or 2.) look into scoping it per-navigator i.e. described in: #254 for currentNavigable