From 413377fa6393e8d59af0b657c52aa63da6fd2ace Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Fri, 1 Dec 2023 11:05:40 -0300 Subject: [PATCH] fix: call the internetStateMiddleware for release mode (#5364) Co-authored-by: Gleidson Daniel Silva --- app/lib/store/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/store/index.ts b/app/lib/store/index.ts index b8bd0b43c..51062fa86 100644 --- a/app/lib/store/index.ts +++ b/app/lib/store/index.ts @@ -25,7 +25,7 @@ if (__DEV__) { ); } else { sagaMiddleware = createSagaMiddleware(); - enhancers = compose(applyAppStateMiddleware(), applyMiddleware(sagaMiddleware)); + enhancers = compose(applyAppStateMiddleware(), applyInternetStateMiddleware(), applyMiddleware(sagaMiddleware)); } const store = createStore(reducers, enhancers);