()
| 290 | |
| 291 | // Detect whether the early placeholder root is still active on screen |
| 292 | function isPlaceholderActive(): boolean { |
| 293 | try { |
| 294 | const g: any = globalThis as any; |
| 295 | if (g.__NS_DEV_PLACEHOLDER_ROOT_VIEW__) return true; |
| 296 | if (g.__NS_DEV_PLACEHOLDER_ROOT_EARLY__) return true; |
| 297 | } catch {} |
| 298 | return false; |
| 299 | } |
| 300 | |
| 301 | // Navigation queue removed: we navigate immediately or throw with a clear error |
| 302 | // Robust navigation fallback: create a sub-app and mount it on a new Page, then navigate there. |