diff --git a/src/app/snippets/[id]/loading.tsx b/src/app/snippets/[id]/loading.tsx
new file mode 100644
index 0000000..0c8dd50
--- /dev/null
+++ b/src/app/snippets/[id]/loading.tsx
@@ -0,0 +1,3 @@
+export default function SnippetShowLoadingPage() {
+ return
Loading...
;
+}
diff --git a/src/app/snippets/[id]/page.tsx b/src/app/snippets/[id]/page.tsx
index 5280a77..63eb10e 100644
--- a/src/app/snippets/[id]/page.tsx
+++ b/src/app/snippets/[id]/page.tsx
@@ -8,6 +8,8 @@ interface SnippetShowPageProps {
}
export default async function SnippetShowPage(props: SnippetShowPageProps) {
+ await new Promise((r) => setTimeout(r, 2000));
+
const params = await props.params;
const snippet = await db.snippet.findFirst({
where: {