Skip to content

Commit ae68909

Browse files
committed
docs: fixed js example
1 parent b665210 commit ae68909

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/01-app/03-api-reference/01-directives/use-cache-private.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ export default async function ProductPage({ params }) {
120120
return (
121121
<div>
122122
<ProductDetails id={id} />
123-
<Recommendations productId={id} />
123+
<Suspense fallback={<div>Loading recommendations...</div>}>
124+
<Recommendations productId={id} />
125+
</Suspense>
124126
</div>
125127
)
126128
}

0 commit comments

Comments
 (0)