mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-16 09:41:31 +10:00
feat: ⚡ update app version to 3.6.2
This commit is contained in:
@ -3,6 +3,7 @@ import debounce from 'lodash/debounce';
|
||||
import { select, takeLatest } from 'redux-saga/effects';
|
||||
|
||||
import { updateResume } from '@/services/resume';
|
||||
import { RootState } from '@/store/index';
|
||||
|
||||
import {
|
||||
addItem,
|
||||
@ -19,7 +20,7 @@ const DEBOUNCE_WAIT = 1000;
|
||||
const debouncedSync = debounce((resume: Resume) => updateResume(resume), DEBOUNCE_WAIT);
|
||||
|
||||
function* handleSync() {
|
||||
const resume: Resume = yield select((state) => state.resume);
|
||||
const resume: Resume = yield select((state: RootState) => state.resume.present);
|
||||
|
||||
debouncedSync(resume);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user