Skip to content

Commit

Permalink
Remove Redux Logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlke committed Oct 10, 2024
1 parent 5b6281a commit 84d42c3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 34 deletions.
27 changes: 0 additions & 27 deletions web/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion web/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"react-map-gl": "^5.2.7",
"react-redux": "^7.2.0",
"redux": "^4.0.5",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.3.0",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17",
"vite": "^5.4.2"
Expand Down
3 changes: 0 additions & 3 deletions web/frontend/src/App.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@ import { render, screen } from '@testing-library/react';
import { Provider } from "react-redux";
import thunkMiddleware from "redux-thunk";
import { createStore, applyMiddleware } from "redux";
import { createLogger } from "redux-logger";
import rootReducer from "./reducers/index";
import App from "./App";

const loggerMiddleware = createLogger();

// TODO: remove deprecated things, do we need the logger?
const store = createStore(
rootReducer,
applyMiddleware(
thunkMiddleware, // lets us dispatch() functions
loggerMiddleware, // neat middleware that logs actions
),
);

Expand Down
3 changes: 0 additions & 3 deletions web/frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import ReactDOM from "react-dom/client";
import { Provider } from "react-redux";
import { createStore, applyMiddleware } from "redux";
import thunkMiddleware from "redux-thunk";
import { createLogger } from "redux-logger";
import { fetchLocations } from "./actions/locations";
import { fetchGravatar } from "./actions/gravatar";
import rootReducer from "./reducers/index";
Expand All @@ -16,12 +15,10 @@ import "./index.css";

import * as serviceWorker from "./serviceWorker";

const loggerMiddleware = createLogger();
const store = createStore(
rootReducer,
applyMiddleware(
thunkMiddleware, // lets us dispatch() functions
loggerMiddleware // neat middleware that logs actions
),
);

Expand Down

0 comments on commit 84d42c3

Please sign in to comment.