From 2425287544b69bc23ba4449848f73427247c6680 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sun, 20 Jul 2025 00:25:11 -0500 Subject: [PATCH] Add temporary logging to LinkWithStatus --- src/components/LinkWithStatus.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/LinkWithStatus.tsx b/src/components/LinkWithStatus.tsx index b4ef5003..578e0165 100644 --- a/src/components/LinkWithStatus.tsx +++ b/src/components/LinkWithStatus.tsx @@ -31,13 +31,17 @@ export default function LinkWithStatus({ const didStartLoading = useRef(false); useEffect(() => { + console.log('link: 01', {isLoading, ref: didStartLoading.current}); if (isLoading) { + console.log('link: 02', {isLoading, ref: didStartLoading.current}); didStartLoading.current = true; return () => { // Call onload when component unmounts while loading + console.log('link: 03', {isLoading, ref: didStartLoading.current}); if (isLoading) { onLoad?.(); } }; } else if (didStartLoading.current) { + console.log('link: 04', {isLoading, ref: didStartLoading.current}); onLoad?.(); didStartLoading.current = false; }