Skip to content

Commit d2745de

Browse files
committed
nextjs bug or weird behaviour: loaders require a sibling layout???
1 parent ccdbf70 commit d2745de

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

web/src/app/(dashboard)/d/layout.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { PropsWithChildren } from "react";
2+
3+
export default async function Layout({ children }: PropsWithChildren) {
4+
return children;
5+
}

web/src/app/(dashboard)/l/layout.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { PropsWithChildren } from "react";
2+
3+
export default async function Layout({ children }: PropsWithChildren) {
4+
return children;
5+
}

web/src/app/(dashboard)/t/layout.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { PropsWithChildren } from "react";
2+
3+
export default async function Layout({ children }: PropsWithChildren) {
4+
return children;
5+
}

0 commit comments

Comments
 (0)