Reorder the process in "clearNotices"
@ -22,16 +22,15 @@ export default {
});
},
*clearNotices({ payload }, { put, select }) {
yield put({
type: 'saveClearedNotices',
payload,
const count = yield select(state => state.global.notices.length);
type: 'user/changeNotifyCount',
payload: count,