Merge pull request #34310 from overleaf/mj-handle-lazy-errors-for-search-and-share

[web] Handle errors while loading full project search and share modal

GitOrigin-RevId: 29d863324a54fa872022002f612498335f88f377
This commit is contained in:
Mathias Jakobsen
2026-06-05 08:07:10 +00:00
committed by Copybot
parent b7735d402d
commit fa36cd508b
2 changed files with 49 additions and 3 deletions
@@ -1,4 +1,6 @@
import React, { FC, lazy, Suspense } from 'react'
import withErrorBoundary from '@/infrastructure/error-boundary'
import { ErrorBoundaryFallback } from '@/shared/components/error-boundary-fallback'
const FullProjectSearchUI = lazy(() => import('./full-project-search-ui'))
@@ -10,4 +12,6 @@ const FullProjectSearch: FC = () => {
)
}
export default FullProjectSearch
export default withErrorBoundary(FullProjectSearch, () => (
<ErrorBoundaryFallback />
))