Logo
Explore Help
Sign In
Koko210/immich-folio
1
0
Fork 0
You've already forked immich-folio
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
a91269eb4210110ebc1dbc6a3135b05bfa372d25
immich-folio/components/DevToolbarLoader.tsx

14 lines
301 B
TypeScript
Raw Normal View History

fix: move DevToolbar dynamic import to Client Component ssr: false is not allowed with next/dynamic in Server Components. Extracted the dynamic() call into DevToolbarLoader.tsx ('use client') so layout.tsx stays a pure Server Component.
2026-03-13 12:28:59 +01:00
'use client';
import dynamic from 'next/dynamic';
chore: implement audit action items and translate hardcoded German text
2026-03-15 07:32:42 +01:00
// ssr: false is only allowed in Client Components
fix: move DevToolbar dynamic import to Client Component ssr: false is not allowed with next/dynamic in Server Components. Extracted the dynamic() call into DevToolbarLoader.tsx ('use client') so layout.tsx stays a pure Server Component.
2026-03-13 12:28:59 +01:00
const DevToolbar = dynamic(
chore: implement audit action items and translate hardcoded German text
2026-03-15 07:32:42 +01:00
() => import('@/components/DevToolbar').then((m) => ({ default: m.DevToolbar })),
{ ssr: false },
fix: move DevToolbar dynamic import to Client Component ssr: false is not allowed with next/dynamic in Server Components. Extracted the dynamic() call into DevToolbarLoader.tsx ('use client') so layout.tsx stays a pure Server Component.
2026-03-13 12:28:59 +01:00
);
export function DevToolbarLoader() {
return <DevToolbar />;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 38ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API