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