Merge pull request #156 from UniversityRadioYork/marks-raygun-redux

Attach a Redux state dump to Raygun error reports
This commit is contained in:
Matthew Stratford 2020-10-06 13:24:19 +01:00 committed by GitHub
commit bb260f35c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}>