src/soundWorkspaces/sagas/workspaceWipe.js
import { put, takeEvery } from 'redux-saga/effects'
import { categoryList } from '../../soundCategories/actions'
import { libraryWipe, soundModule } from '../actions'
import { soundBoard } from '../../soundBoards/actions'
import { soundList } from '../../sounds/actions'
import { tagList } from '../../soundTags/actions'
function * wipeLibrary () {
yield put(soundList.clear())
yield put(tagList.clear())
yield put(categoryList.clear())
yield put(soundModule.clear())
yield put(soundBoard.clear())
yield put(libraryWipe.success())
}
function * handleLibraryWipe () {
yield takeEvery(libraryWipe.TRIGGER, wipeLibrary)
}
export default [
handleLibraryWipe
]