AntiPattern

Conditional Hook Invocation

conditional-hook-invocation

Hook-based APIs fail or fire at the wrong times when hook invocation depends on runtime availability (e.g., bookingId, store mode, undefined data), causing stale renders, missing fetches, or rule-of-hooks errors under component lifecycle changes.