(state: PossiblyStaleNavigationState)
| 140 | } |
| 141 | |
| 142 | function validNavState(state: PossiblyStaleNavigationState): boolean { |
| 143 | if (state.routes.length === 0) { |
| 144 | return false; |
| 145 | } |
| 146 | const [firstRoute] = state.routes; |
| 147 | if (firstRoute.name !== AppRouteName) { |
| 148 | return false; |
| 149 | } |
| 150 | return true; |
| 151 | } |
| 152 | |
| 153 | function getChildRouteFromNavigatorRoute( |
| 154 | parentRoute: PossiblyStaleRoute<>, |