Skip to content

Commit

Permalink
prevent error flash on load
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeterdev committed Nov 1, 2023
1 parent 77e765a commit ecfc785
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions apps/web/pages/[[...root]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,19 @@ export default function Root() {

return (
<div className="App">
{error && <div className="error">{error}</div>}
{rootComponentPath && (
<ComponentTree
components={components}
isDebug={isDebug}
metrics={metrics}
rootComponentPath={rootComponentPath}
showMonitor={showMonitor}
/>
<>
{error && <div className="error">{error}</div>}
<ComponentTree
components={components}
isDebug={isDebug}
metrics={metrics}
rootComponentPath={rootComponentPath}
showMonitor={showMonitor}
/>
<Inspector />
</>
)}
<Inspector />
</div>
);
}

0 comments on commit ecfc785

Please sign in to comment.