AntiPattern

Conditional Context in Hooks

conditional-hook-context

Hook and query execution break or become inconsistent when code conditionally builds parameters or calls composables outside the component lifecycle, causing missing injection context and stale/incorrect cache updates. Developers must align hook invocation and query enabling with the required inputs.