diff --git a/lib/redux/quote/quote_middleware.dart b/lib/redux/quote/quote_middleware.dart index 76ffddb71..2a94ccbae 100644 --- a/lib/redux/quote/quote_middleware.dart +++ b/lib/redux/quote/quote_middleware.dart @@ -71,6 +71,11 @@ Middleware _viewQuoteList() { return (Store store, dynamic dynamicAction, NextDispatcher next) { final action = dynamicAction as ViewQuoteList; + if (hasChanges( + store: store, context: action.context, force: action.force)) { + return; + } + next(action); store.dispatch(UpdateCurrentRoute(QuoteScreen.route)); @@ -89,6 +94,11 @@ Middleware _editQuote() { NextDispatcher next) async { final action = dynamicAction as EditQuote; + if (hasChanges( + store: store, context: action.context, force: action.force)) { + return; + } + next(action); store.dispatch(UpdateCurrentRoute(QuoteEditScreen.route));