Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Not dispatching errors to previous globalHandler #106

Closed
demianscv opened this issue Jun 19, 2017 · 1 comment
Closed

Not dispatching errors to previous globalHandler #106

demianscv opened this issue Jun 19, 2017 · 1 comment

Comments

@demianscv
Copy link

It seems that the ErrorUtils.getGlobalHandler is not handled properly. I have set this configuration:

configuration.beforeSendCallbacks.push((report) => !__DEV__)

which seems to work properly on the bugsnag site, but when I am in dev bugsnag seems to not continue executing the previous handler, and thus the regular react native error doesn't appear (and leaves the app in a inconsistent state).
Digging a bit into bugsnag library, it seems that if for some reason it doesn't need to notify to bugsnag, it just returns the notify function and doesn't call the previousHandler / postSendCallback.

Does that makes sense or is it missing the previous global handler by design?
Thanks!

@kattrali
Copy link
Contributor

kattrali commented Aug 2, 2017

This was definitely an oversight. Due to be released in 2.2.6.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants