chore: add comment for render count tracker

This commit is contained in:
Haileyesus
2026-01-28 22:53:01 +03:00
parent 430d0ddc4a
commit d9233f60b6

View File

@@ -46,6 +46,7 @@ function AppContent() {
const navigate = useNavigate();
const { sessionId } = useParams();
const { t } = useTranslation('common');
// * This is a tracker for avoiding excessive re-renders during development
const renderCountRef = useRef(0);
console.log(`AppContent render count: ${renderCountRef.current++}`);