Skip to content

Commit efa541a

Browse files
committed
Adding a console log just for debugging..
1 parent f2ade14 commit efa541a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

polaris-react/src/components/SkeletonPage/SkeletonPage.tsx

+8-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,14 @@ export function SkeletonPage({
3535
useEffect(() => {
3636
// performance mark on skeleton unmount to help with page load tracking
3737
return () => {
38-
performance.mark('polaris:page_skeleton:unmount');
39-
}
40-
}, [])
38+
const mark = performance?.mark?.('polaris:page_skeleton:unmount');
39+
console.log(
40+
'unmounting skeleton...',
41+
mark,
42+
performance.getEntries().length,
43+
);
44+
};
45+
}, []);
4146

4247
const titleContent = title ? (
4348
<h1 className={styles.Title}>{title}</h1>

0 commit comments

Comments
 (0)