We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9095aaa commit 33ebf39Copy full SHA for 33ebf39
2 files changed
app/partial-fallbacks/[slug]/loading.tsx
app/partial-fallbacks/readme.mdx
@@ -14,13 +14,26 @@ export const demo = db.demo.find({ where: { slug: 'partial-fallbacks' } });
14
15
# !!col
16
17
-```ts next.config.ts
18
-const nextConfig = {
19
- experimental: {
+```tsx app/partial-fallbacks/[slug]/page.tsx
+'use cache';
+
20
+import { Suspense } from 'react';
21
22
+// !mark
23
+export async function generateStaticParams() {
24
+ return [{ slug: '1' }, { slug: '2' }, { slug: '3' }];
25
+}
26
27
+export default async function Page({ params }) {
28
+ const { slug } = await params;
29
30
+ return (
31
// !mark
- partialFallbacks: true,
- },
-};
32
+ <Suspense fallback={<ProductSkeleton />}>
33
+ <ProductDetail slug={slug} />
34
+ </Suspense>
35
+ );
36
37
```
38
39
</Grid>
0 commit comments