Remember token

This commit is contained in:
Hillel Coren 2019-09-24 11:36:11 +03:00
parent 5174cafba2
commit 4fa71460d1
1 changed files with 10 additions and 0 deletions

View File

@ -71,6 +71,11 @@ Middleware<AppState> _viewQuoteList() {
return (Store<AppState> 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<AppState> _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));