AntiPattern

Hook Context Loss

hook-context-loss

Hook calls and API options lose execution context when extracted or invoked from the wrong place (e.g., destructuring QueryClient methods or calling composables inside functions), leading to missing bindings, incorrect parameter types, or broken React Query/injection behavior.