ErrorBoundary Component as module federation remote component, can not catch the react error

Viewed 10

ErrorBoundary Component as module federation remote component, host app consume the component, can not catch the react error.

import ErrorBoundary from 'remoteEntry/ErrorBoundary'

const App = ({ children }) => {
  return <ErrorBoundary>
   <div>{a.length}</div>
 </ErrorBoundary>
}

console hints: Consider adding an error boundary to your tree to customize error handling behavior.

0 Answers
Related