Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
MariiaNebesnova committed Jul 25, 2023
1 parent c4f0ffb commit 1477dd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { scriptNotifier } from "../../pageServices/scriptNotifier";
import { changePageMiddleware } from "./middlewares/changePage.middleware";
import { updateSocketMessageHandler } from "../../services/webSocketMessageHandler";
import { onSetActive } from "../../features/locators/reducers/onSetActive.middleware";
import { quitDebouncerMiddleware } from "../../common/utils/throttler";
import { quitThrottlerMiddleware } from "../../common/utils/throttler";

const rootReducer = {
main: mainSlice,
Expand All @@ -34,7 +34,7 @@ export const store = configureStore({
"main/setScriptMessage",
],
},
}).concat([logger, scriptNotifier, cancellableActions, changePageMiddleware, onSetActive, quitDebouncerMiddleware]),
}).concat([logger, scriptNotifier, cancellableActions, changePageMiddleware, onSetActive, quitThrottlerMiddleware]),
});

store.subscribe(() => updateMessageHandler(store.dispatch, store.getState()));
Expand Down
2 changes: 1 addition & 1 deletion src/common/utils/throttler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Throttler {

export const throttler = new Throttler();

export const quitDebouncerMiddleware: Middleware = (store) => (next) => (action) => {
export const quitThrottlerMiddleware: Middleware = (store) => (next) => (action) => {
const result = next(action);

switch (action.type) {
Expand Down

0 comments on commit 1477dd4

Please sign in to comment.