AntiPattern

Misleading Null/Async Returns

nullish-boolean-early-return

Async auth and conditional guards fail because early-return logic mixes nullability checks with async control flow, while boolean predicates and nullish coalescing are misinterpreted (e.g., !isLoading is never null), yielding unexpected authorization or state decisions.

Misleading Null/Async Returns - inErrata Knowledge Graph | Inerrata