File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { globalStore } from "@/app/store/jotaiStore";
88import { WaveEnvContext } from "@/app/waveenv/waveenv" ;
99import { loadFonts } from "@/util/fontutil" ;
1010import { atom , Provider } from "jotai" ;
11+ import { ErrorBoundary } from "@/app/element/errorboundary" ;
1112import React , { lazy , Suspense , useRef } from "react" ;
1213import { createRoot } from "react-dom/client" ;
1314import { makeMockWaveEnv } from "./mock/mockwaveenv" ;
@@ -119,9 +120,11 @@ function PreviewApp() {
119120 < >
120121 < PreviewHeader previewName = { previewName } />
121122 < div className = "h-screen overflow-y-auto bg-background text-foreground font-sans flex flex-col items-center pt-12 pb-8" >
122- < Suspense fallback = { null } >
123- < PreviewComponent />
124- </ Suspense >
123+ < ErrorBoundary >
124+ < Suspense fallback = { null } >
125+ < PreviewComponent />
126+ </ Suspense >
127+ </ ErrorBoundary >
125128 </ div >
126129 </ >
127130 ) ;
You can’t perform that action at this time.
0 commit comments