Skip to content

Commit

Permalink
#34 [ Redux Saga ] Code Project Redux Saga
Browse files Browse the repository at this point in the history
  • Loading branch information
fdhhhdjd committed Oct 1, 2023
1 parent 9dadfbd commit ef92fa2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libs/Redux/redux-saga/Learn_1/stores/Saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@ export function* onDeleteContact() {
function* onAddContactAsync({ payload: contacts }) {
try {
yield firebaseDb.child('contacts_saga').push(contacts);
console.log('runnn2222');

yield put(addContactsSuccess());
} catch (error) {
yield put(getContactsFail());
}
}
export function* onAddContact() {
console.log('runnn1111');
yield takeLatest(types.ADD_CONTACTS_STARTS, onAddContactAsync);
}

Expand Down

0 comments on commit ef92fa2

Please sign in to comment.