summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/redux/middleware
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
commit086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch)
treea4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /devtools/client/shared/redux/middleware
parentAdding debian version 124.0.1-1. (diff)
downloadfirefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz
firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/client/shared/redux/middleware')
-rw-r--r--devtools/client/shared/redux/middleware/debounce.js2
-rw-r--r--devtools/client/shared/redux/middleware/log.js2
-rw-r--r--devtools/client/shared/redux/middleware/promise.js2
-rw-r--r--devtools/client/shared/redux/middleware/xpcshell/test_middleware-task-02.js2
-rw-r--r--devtools/client/shared/redux/middleware/xpcshell/test_middleware-task-03.js2
5 files changed, 5 insertions, 5 deletions
diff --git a/devtools/client/shared/redux/middleware/debounce.js b/devtools/client/shared/redux/middleware/debounce.js
index fc5625a0fe..c630398ffa 100644
--- a/devtools/client/shared/redux/middleware/debounce.js
+++ b/devtools/client/shared/redux/middleware/debounce.js
@@ -24,7 +24,7 @@
function debounceActions(wait, maxWait) {
let queuedActions = [];
- return store => next => {
+ return () => next => {
const debounced = debounce(
() => {
next(batchActions(queuedActions));
diff --git a/devtools/client/shared/redux/middleware/log.js b/devtools/client/shared/redux/middleware/log.js
index 4ea09491ca..c9af48f1d3 100644
--- a/devtools/client/shared/redux/middleware/log.js
+++ b/devtools/client/shared/redux/middleware/log.js
@@ -7,7 +7,7 @@
* A middleware that logs all actions coming through the system
* to the console.
*/
-function log({ dispatch, getState }) {
+function log() {
return next => action => {
try {
// Only print the action type, rather than printing the whole object
diff --git a/devtools/client/shared/redux/middleware/promise.js b/devtools/client/shared/redux/middleware/promise.js
index 7f88651a61..c640ec6a99 100644
--- a/devtools/client/shared/redux/middleware/promise.js
+++ b/devtools/client/shared/redux/middleware/promise.js
@@ -18,7 +18,7 @@ loader.lazyRequireGetter(
const PROMISE = (exports.PROMISE = "@@dispatch/promise");
-function promiseMiddleware({ dispatch, getState }) {
+function promiseMiddleware({ dispatch }) {
return next => action => {
if (!(PROMISE in action)) {
return next(action);
diff --git a/devtools/client/shared/redux/middleware/xpcshell/test_middleware-task-02.js b/devtools/client/shared/redux/middleware/xpcshell/test_middleware-task-02.js
index eaa573a8ae..a515acd2a4 100644
--- a/devtools/client/shared/redux/middleware/xpcshell/test_middleware-task-02.js
+++ b/devtools/client/shared/redux/middleware/xpcshell/test_middleware-task-02.js
@@ -56,7 +56,7 @@ add_task(async function () {
});
function comboAction() {
- return async function ({ dispatch, getState }) {
+ return async function ({ dispatch }) {
const data = {};
data.async = await dispatch(fetchAsync("async"));
data.sync = await dispatch(fetchSync("sync"));
diff --git a/devtools/client/shared/redux/middleware/xpcshell/test_middleware-task-03.js b/devtools/client/shared/redux/middleware/xpcshell/test_middleware-task-03.js
index 94087e31de..31c83a3122 100644
--- a/devtools/client/shared/redux/middleware/xpcshell/test_middleware-task-03.js
+++ b/devtools/client/shared/redux/middleware/xpcshell/test_middleware-task-03.js
@@ -35,7 +35,7 @@ add_task(async function () {
});
function asyncError() {
- return async ({ dispatch, getState }) => {
+ return async () => {
const error = "task-middleware-error-generator";
throw error;
};