Merge pull request #156 from UniversityRadioYork/marks-raygun-redux
Attach a Redux state dump to Raygun error reports
This commit is contained in:
commit
bb260f35c6
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,12 @@ if (
|
|||
raygun("setVersion", process.env.REACT_APP_VERSION);
|
||||
}
|
||||
|
||||
raygun("withCustomData", function() {
|
||||
return {
|
||||
state: store.getState(),
|
||||
};
|
||||
});
|
||||
|
||||
function render() {
|
||||
ReactDOM.render(
|
||||
<Provider store={store}>
|
||||
|
|
Loading…
Reference in a new issue