We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 234a303 commit 56eebfcCopy full SHA for 56eebfc
src-next/app/files/page.tsx
@@ -1,15 +1,17 @@
1
"use client";
2
3
-import React from "react";
+import React, { Suspense } from "react";
4
import useCurrentPath from "@/hooks/useCurrentPath.ts";
5
import FileExplorer from "@/components/file-explorer/FileExplorer.tsx";
6
7
export default function Page(): React.ReactElement {
8
const { path } = useCurrentPath();
9
10
return (
11
- <div>
12
- <FileExplorer path={path} />
13
- </div>
+ <Suspense fallback={<div>Loading...</div>}>
+ <div>
+ <FileExplorer path={path} />
14
+ </div>
15
+ </Suspense>
16
);
17
}
0 commit comments