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:
committed by
Copybot
parent
b7735d402d
commit
fa36cd508b
+5
-1
@@ -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 />
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user