You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MOB-11562] Fix Original Error Handler Not Called (#886)
The original global error handler was initialized in the global scope, so it used to have the default value set by React Native. When users try to set a global error handler themselves, the handler will be ignored, due to the early initialization of `originalHandler`.
This PR fixes this issue by getting the global error handler within Instabug.init scope. Allowing the users to set global error handlers before initializing Instabug. Setting handlers after Instabug's initialization would still not be possible.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
## Unreleased
2
2
3
+
- Fixes global error handler not being called.
3
4
- Deprecates Instabug.start in favour of Instabug.init that takes a configuration object for SDK initialization.
4
5
- Deprecates Instabug.setDebugEnabled, Instabug.setSdkDebugLogsLevel, and APM.setLogLevel in favour of debugLogsLevel property, which can be passed to InstabugConfig while initializing the SDK using Instabug.init.
5
6
- Deprecates the enums: sdkDebugLogsLevel and logLevel in favour of a new enum LogLevel.
0 commit comments