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
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ const store = createStore(reducer, applyMiddleware(
19
19
reduxCatch(errorHandler)
20
20
));
21
21
```
22
+
22
23
-`reduxCatch` receive a function to use when an error happen.
23
24
- The error handler function could be just a `console.error` like the example above or a function to log the error in some kind of error tracking platform.
24
25
- You should use this middleware as the first middleware in the chain, so its allowed to catch all the possible errors in the application.
@@ -29,6 +30,7 @@ To use it with Sentry just download the Sentry script from npm:
29
30
```bash
30
31
npm i -S raven-js raven
31
32
```
33
+
32
34
-[raven-js](https://www.npmjs.com/package/raven-js): This is the client for browser usage.
33
35
-[raven-node](https://github.com/getsentry/raven-node): This is the client for server usage.
34
36
@@ -48,9 +50,7 @@ And then use `Raven.captureException` as the error handler like this:
0 commit comments