From 1477dd447b9d333225e9441c144295e73c931ad6 Mon Sep 17 00:00:00 2001 From: MariiaNebesnova Date: Tue, 25 Jul 2023 11:43:16 +0300 Subject: [PATCH] rename --- src/app/store/store.ts | 4 ++-- src/common/utils/throttler.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/store/store.ts b/src/app/store/store.ts index 9e1bebd2..f42d9bb2 100644 --- a/src/app/store/store.ts +++ b/src/app/store/store.ts @@ -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, @@ -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())); diff --git a/src/common/utils/throttler.ts b/src/common/utils/throttler.ts index e53839d6..c857986e 100644 --- a/src/common/utils/throttler.ts +++ b/src/common/utils/throttler.ts @@ -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) {