feat(waku): WakuLink component to use unstable_prefetchOnEnter for prefetch (#2637)

This commit is contained in:
Sungyu Kang
2025-11-18 23:13:04 +08:00
committed by GitHub
parent 2fe63949d2
commit fe380dad26
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-core': patch
---
feat(waku): WakuLink component to use unstable_prefetchOnEnter for prefetch
+2 -2
View File
@@ -36,9 +36,9 @@ const framework: Framework = {
[router],
);
},
Link({ href, prefetch: _prefetch, ...props }) {
Link({ href, prefetch = true, ...props }) {
return (
<WakuLink to={href!} {...props}>
<WakuLink to={href!} unstable_prefetchOnEnter={prefetch} {...props}>
{props.children}
</WakuLink>
);