Lazy load routes

This commit is contained in:
Gregory Schier
2023-03-13 13:56:13 -07:00
parent 90c873e37e
commit e2fa188ca3
6 changed files with 29 additions and 29 deletions

View File

@@ -13,7 +13,7 @@ type Params = {
requestId?: string;
};
export function Workspace() {
export default function Workspace() {
const params = useParams<Params>();
const workspaceId = params?.workspaceId ?? '';
const { data: requests } = useRequests(workspaceId);