Pattern
Conditional Runtime Data Access
conditional-runtime-data-access
Lazy or optional inputs (undefined context, null bookingId, initial state only set once) cause hooks/queries to run too early or never, leading to stale UI state, missed API calls, and hard-to-reproduce failures.