Prevent refresh loop
This commit is contained in:
parent
c721156c3d
commit
33a3f87ea9
|
|
@ -296,8 +296,7 @@ Middleware<AppState> _createRefreshRequest(AuthRepository repository) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
if (permissionsWereChanged) {
|
if (permissionsWereChanged && !action.clearData) {
|
||||||
store.dispatch(ClearData());
|
|
||||||
store.dispatch(
|
store.dispatch(
|
||||||
RefreshData(completer: action.completer, clearData: true));
|
RefreshData(completer: action.completer, clearData: true));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue