Remember token
This commit is contained in:
parent
5174cafba2
commit
4fa71460d1
|
|
@ -71,6 +71,11 @@ Middleware<AppState> _viewQuoteList() {
|
||||||
return (Store<AppState> store, dynamic dynamicAction, NextDispatcher next) {
|
return (Store<AppState> store, dynamic dynamicAction, NextDispatcher next) {
|
||||||
final action = dynamicAction as ViewQuoteList;
|
final action = dynamicAction as ViewQuoteList;
|
||||||
|
|
||||||
|
if (hasChanges(
|
||||||
|
store: store, context: action.context, force: action.force)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
next(action);
|
next(action);
|
||||||
|
|
||||||
store.dispatch(UpdateCurrentRoute(QuoteScreen.route));
|
store.dispatch(UpdateCurrentRoute(QuoteScreen.route));
|
||||||
|
|
@ -89,6 +94,11 @@ Middleware<AppState> _editQuote() {
|
||||||
NextDispatcher next) async {
|
NextDispatcher next) async {
|
||||||
final action = dynamicAction as EditQuote;
|
final action = dynamicAction as EditQuote;
|
||||||
|
|
||||||
|
if (hasChanges(
|
||||||
|
store: store, context: action.context, force: action.force)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
next(action);
|
next(action);
|
||||||
|
|
||||||
store.dispatch(UpdateCurrentRoute(QuoteEditScreen.route));
|
store.dispatch(UpdateCurrentRoute(QuoteEditScreen.route));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue