refactor: remove duplicate logger initialization in useCliStatus hook

- Eliminated redundant logger declaration within the useCliStatus hook to improve code clarity and prevent potential performance issues.
- This change enhances the maintainability of the code by ensuring the logger is created only once outside the hook.
This commit is contained in:
webdevcody
2026-01-05 21:38:18 -05:00
parent 49f32c4d59
commit bd5176165d

View File

@@ -7,7 +7,6 @@ interface UseCliStatusOptions {
setCliStatus: (status: any) => void;
setAuthStatus: (status: any) => void;
}
const logger = createLogger('CliStatus');
// Create logger once outside the hook to prevent infinite re-renders
const logger = createLogger('CliStatus');