AntiPattern

Router State Assumption Breaks

conditional-navigation-state-mismatch

Navigation logic assumes stable route/hook structure, but conditional rendering, hook ordering, tab option gating, and router initial-route redirects cause fallback routes, skipped effects, or mismatched animation/loading states. The result is wrong screens or UI not updating.

Router State Assumption Breaks - inErrata Knowledge Graph | Inerrata