mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-25 06:04:54 +00:00
Generated by Spark: Fix all reported errors.
This commit is contained in:
17
src/main.tsx
17
src/main.tsx
@@ -10,6 +10,23 @@ import "./main.css"
|
||||
import "./styles/theme.css"
|
||||
import "./index.css"
|
||||
|
||||
const originalError = console.error
|
||||
console.error = (...args) => {
|
||||
if (
|
||||
typeof args[0] === 'string' &&
|
||||
args[0].includes('ResizeObserver loop completed with undelivered notifications')
|
||||
) {
|
||||
return
|
||||
}
|
||||
originalError.call(console, ...args)
|
||||
}
|
||||
|
||||
window.addEventListener('error', (e) => {
|
||||
if (e.message === 'ResizeObserver loop completed with undelivered notifications.') {
|
||||
e.stopImmediatePropagation()
|
||||
}
|
||||
})
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<ErrorBoundary FallbackComponent={ErrorFallback}>
|
||||
<App />
|
||||
|
||||
Reference in New Issue
Block a user