Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a callback? #20

Open
delewis13 opened this issue Apr 11, 2020 · 0 comments
Open

Add a callback? #20

delewis13 opened this issue Apr 11, 2020 · 0 comments

Comments

@delewis13
Copy link

Would love the ability to add a callback to execute after the error has been sent to sentry.

In my case, I have middleware = [myErrorCatchingMiddleware, Thunk, reduxSentryMiddleWare]. The function of "myErrorCatchingMiddleware" is to dispatch an update to the store to notify that an uncaught error has occurred, then re-throws the error to be caught again by reduxSentryMiddleware.

The result of this is that the last dispatched action as shown in Sentry is a result of myErrorCatchingMiddleware, as opposed to the actual action that caused the issue.

Thanks for the great module :)

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

No branches or pull requests

1 participant