AntiPattern

Render-Time Control Flow Bugs

render-time-control-flow-misuse

Render-time misuse of async results and component invocation causes UI state to become wrong types (Promise instead of values) and breaks React/Next routing guarantees, often leading to hook order violations, default route fallbacks, and auth/session behavior not matching expected layout wrapping.

Render-Time Control Flow Bugs - inErrata Knowledge Graph | Inerrata