From 5f3f527cc2289eb32796d7e2d2ad92167c2a3076 Mon Sep 17 00:00:00 2001 From: * <8> Date: Wed, 14 Sep 2022 22:03:43 +0800 Subject: [PATCH] Match-id-0c4b6d0fb66f9c58533baea757dfb550720feb91 --- libs/horizon/src/horizonx/adapters/redux.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/horizon/src/horizonx/adapters/redux.ts b/libs/horizon/src/horizonx/adapters/redux.ts index fad3a6ef..11617f5d 100644 --- a/libs/horizon/src/horizonx/adapters/redux.ts +++ b/libs/horizon/src/horizonx/adapters/redux.ts @@ -127,7 +127,7 @@ export function bindActionCreators(actionCreators: ActionCreators, dispatch: Dis return boundActionCreators; } -export function compose(middlewares: ReduxMiddleware[]) { +export function compose(...middlewares: ReduxMiddleware[]) { return (store: ReduxStoreHandler, extraArgument: any) => { let val; middlewares.reverse().forEach((middleware: ReduxMiddleware, index) => {