fix: call the internetStateMiddleware for release mode (#5364)

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
This commit is contained in:
Reinaldo Neto 2023-12-01 11:05:40 -03:00 committed by GitHub
parent b217435ffe
commit 413377fa63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ if (__DEV__) {
); );
} else { } else {
sagaMiddleware = createSagaMiddleware(); sagaMiddleware = createSagaMiddleware();
enhancers = compose(applyAppStateMiddleware(), applyMiddleware(sagaMiddleware)); enhancers = compose(applyAppStateMiddleware(), applyInternetStateMiddleware(), applyMiddleware(sagaMiddleware));
} }
const store = createStore(reducers, enhancers); const store = createStore(reducers, enhancers);