Skip to content

Commit 2196e1b

Browse files
committed
refactor comment out logs
1 parent da5a51d commit 2196e1b

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/components/TypewriterText.jsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,28 @@ export default function TypewriterText({
1818
const startTimeRef = React.useRef(null);
1919

2020
// 🐛 Debug: Log when component mounts/unmounts
21-
React.useEffect(() => {
22-
console.log('🎭 [TypewriterText] Component MOUNTED:', {
23-
enabled,
24-
textLength: text.length,
25-
timestamp: performance.now()
26-
});
21+
// React.useEffect(() => {
22+
// console.log('🎭 [TypewriterText] Component MOUNTED:', {
23+
// enabled,
24+
// textLength: text.length,
25+
// timestamp: performance.now()
26+
// });
2727

28-
return () => {
29-
console.log('🎭 [TypewriterText] Component UNMOUNTED:', {
30-
timestamp: performance.now()
31-
});
32-
};
33-
// eslint-disable-next-line react-hooks/exhaustive-deps
34-
}, []); // Empty deps = mount/unmount only (intentionally ignoring enabled/text)
28+
// return () => {
29+
// console.log('🎭 [TypewriterText] Component UNMOUNTED:', {
30+
// timestamp: performance.now()
31+
// });
32+
// };
33+
// // eslint-disable-next-line react-hooks/exhaustive-deps
34+
// }, []); // Empty deps = mount/unmount only (intentionally ignoring enabled/text)
3535

3636
// 🐛 Debug: Log when enabled flag changes
37-
React.useEffect(() => {
38-
console.log('🎭 [TypewriterText] enabled flag changed:', {
39-
enabled,
40-
timestamp: performance.now()
41-
});
42-
}, [enabled]);
37+
// React.useEffect(() => {
38+
// console.log('🎭 [TypewriterText] enabled flag changed:', {
39+
// enabled,
40+
// timestamp: performance.now()
41+
// });
42+
// }, [enabled]);
4343

4444
React.useEffect(() => {
4545
if (!enabled) {

0 commit comments

Comments
 (0)