mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-02-12 19:57:34 +00:00
chore: add comment for render count tracker
This commit is contained in:
@@ -46,6 +46,7 @@ function AppContent() {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const { sessionId } = useParams();
|
const { sessionId } = useParams();
|
||||||
const { t } = useTranslation('common');
|
const { t } = useTranslation('common');
|
||||||
|
// * This is a tracker for avoiding excessive re-renders during development
|
||||||
const renderCountRef = useRef(0);
|
const renderCountRef = useRef(0);
|
||||||
console.log(`AppContent render count: ${renderCountRef.current++}`);
|
console.log(`AppContent render count: ${renderCountRef.current++}`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user