import { Suspense , memo } from 'react' ; import FullPageLoader from 'components/core/Loader/FullPageLoader' ; import ErrorBoundary from './ErrorBoundary' ; const Boundary = memo ( ( { children } ) => ( < Suspense fallback = { < FullPageLoader / > } > < ErrorBoundary > { children } < /ErrorBoundary> < /Suspense>)); export default Boundary ;