Issue Description
In Frontend/src/user/pages/AIProcessing.jsx, the analyzeTicket async function is defined inside the useEffect callback. This means on every render where dependencies change, a new function instance is created.
Expected Fix
Move analyzeTicket outside the useEffect and wrap it in useCallback with proper dependencies.
Files to Modify
- Frontend/src/user/pages/AIProcessing.jsx (lines 35-385)
Issue Description
In Frontend/src/user/pages/AIProcessing.jsx, the analyzeTicket async function is defined inside the useEffect callback. This means on every render where dependencies change, a new function instance is created.
Expected Fix
Move analyzeTicket outside the useEffect and wrap it in useCallback with proper dependencies.
Files to Modify