You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
planka_custom/client/src/sagas/app/watchers/notification.js

12 lines
335 B
JavaScript

import { takeLatest } from 'redux-saga/effects';
import { deleteNotificationService } from '../services';
import EntryActionTypes from '../../../constants/EntryActionTypes';
export default function* () {
yield takeLatest(
EntryActionTypes.NOTIFICATION_DELETE,
({ payload: { id } }) => deleteNotificationService(id),
);
}