freeCodeCamp/client/src/redux/session-completed-challenges.js
Ahmad Abdolsaheb 0ee8097a16
feat: move session related challenge data to sessionStorage (#55918)
Co-authored-by: sembauke <[email protected]>
Co-authored-by: Oliver Eyton-Williams <[email protected]>
2024-09-13 12:43:00 +03:00

12 lines
347 B
JavaScript

import { takeEvery, call } from 'redux-saga/effects';
import { incrementCurrentCount } from '../utils/session-storage';
function* SessionCompletedChallengesSaga() {
yield call(incrementCurrentCount);
}
export function createSessionCompletedChallengesSaga(types) {
return [takeEvery(types.submitComplete, SessionCompletedChallengesSaga)];
}