Skip to content

Commit cf18d32

Browse files
committed
dx: add troubleshooting breadcrumb comment
1 parent ed7a435 commit cf18d32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/ui/Link.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export const BaseLink = forwardRef<HTMLAnchorElement, LinkProps>(function Link(
5757
const { twFlipForRtl } = useRtlFlip()
5858

5959
if (!href) {
60+
// If troubleshooting this warning, check for multiple h1's in markdown content—these will result in broken id hrefs
6061
console.warn(`Link component missing href prop, pathname: ${pathname}`)
6162
return <a {...props} />
6263
}

0 commit comments

Comments
 (0)