Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atatus/redux-atatus-middleware
Redux middleware for Atatus error logging
https://github.com/atatus/redux-atatus-middleware
Last synced: 5 days ago
JSON representation
Redux middleware for Atatus error logging
- Host: GitHub
- URL: https://github.com/atatus/redux-atatus-middleware
- Owner: atatus
- Created: 2017-01-05T17:49:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-05T17:52:14.000Z (about 8 years ago)
- Last Synced: 2024-11-19T16:56:56.176Z (2 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redux Atatus
Redux middleware for [Atatus](https://github.com/atatus/atatus-js) error logging
#### Why add Atatus via Redux middleware?
Because Redux contains the state of your whole application and is aware of the last action dispatched before each error. This is useful information we want the error log to contain so we've added this to the params object in Atatus.
### Setting up
#### 1. Add dependencies
``` bash
npm install redux-atatus-middleware --save
```#### 2. Import dependency
``` js
import atatusMiddleware from 'redux-atatus-middleware';
```#### 3. Configure & add middleware
``` js
const errorMiddleware = atatusMiddleware();export const store = createStore(
rootReducer,
applyMiddleware(
errorMiddleware
)
);export default store;
```