We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d1d205 commit 89a180aCopy full SHA for 89a180a
1 file changed
src/index.tsx
@@ -6,7 +6,18 @@ import ThemeIndex from './theme'
6
import { ProThemeProvider } from './theme/hooks'
7
import i18n from './i18n/i18n'
8
9
-const root = ReactDOM.createRoot(document.getElementById('root') as HTMLDivElement)
+const root = ReactDOM.createRoot(document.getElementById('root') as HTMLDivElement, {
10
+ onCaughtError: (error) => {
11
+ console.log('caught error', error)
12
+ },
13
+ onUncaughtError: (error) => {
14
+ console.log('uncaught error', error)
15
16
+ onRecoverableError: (error) => {
17
+ console.log('recoverable error', error)
18
19
+ identifierPrefix: 'wui',
20
+})
21
22
root.render(
23
<I18nextProvider i18n={i18n}>
0 commit comments