From 03c7c56e7f7d83d9c78a48acb1b9ca1bc218058f Mon Sep 17 00:00:00 2001 From: vigneshwaran-chandrasekaran Date: Sun, 15 Sep 2019 19:25:15 +0530 Subject: [PATCH] for redux loging purpose installed redux-logger --- package-lock.json | 13 +++++++++++++ package.json | 1 + src/index.js | 5 +++-- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 84ef934..11efcf6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4087,6 +4087,11 @@ "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" }, + "deep-diff": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/deep-diff/-/deep-diff-0.3.8.tgz", + "integrity": "sha1-wB3mPvsO7JeYgB1Ax+Da4ltYLIQ=" + }, "deep-equal": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.0.tgz", @@ -10989,6 +10994,14 @@ "symbol-observable": "^1.2.0" } }, + "redux-logger": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/redux-logger/-/redux-logger-3.0.6.tgz", + "integrity": "sha1-91VZZvMJjzyIYExEnPC69XeCdL8=", + "requires": { + "deep-diff": "^0.3.5" + } + }, "redux-thunk": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.3.0.tgz", diff --git a/package.json b/package.json index 0ba9b5d..a0aa2aa 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "react-router-dom": "^5.0.1", "react-scripts": "3.1.1", "redux": "^4.0.4", + "redux-logger": "^3.0.6", "redux-thunk": "^2.3.0" }, "scripts": { diff --git a/src/index.js b/src/index.js index 3427525..a88975a 100644 --- a/src/index.js +++ b/src/index.js @@ -1,17 +1,18 @@ import React from 'react'; import ReactDOM from 'react-dom'; // import './index.css'; -import App from './App'; import * as serviceWorker from './serviceWorker'; import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import { Provider } from "react-redux"; +import logger from 'redux-logger' import rootReducer from './reducers'; +import App from './App'; // STORE const store = createStore( rootReducer, - compose(applyMiddleware(thunk), + compose(applyMiddleware(logger, thunk), window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()));