Currently, there is no way to a set a detail state to nil when a screen is dismissed.
Solution
This PR adds the higher order .onDismiss path builder which keeps track of the screen it last built and whenever the built screen changes, performs an action, either passing or ignoring the previously built screen.
Resolves #18.
Problem
Currently, there is no way to a set a detail state to nil when a screen is dismissed.
Solution
This PR adds the higher order .onDismiss path builder which keeps track of the screen it last built and whenever the built screen changes, performs an action, either passing or ignoring the previously built screen.