function * task () {
}

export const todosSaga = [task]

@@ -1,56 +1,869 @@
-function * task () %7B%0A%7D%0A%0Aexport const todosSaga = %5Btask
+import %7B take, put %7D from 'redux-saga/effects'%0Aimport %7B types %7D from '~/redux/todosForm'%0Aimport %7B creators %7D from '~/redux/todos'%0A%0Afunction * subscribeSubmit () %7B%0A  while (true) %7B%0A    const %7B payload %7D = yield take(types.submitForm)%0A    yield put(creators.pushTodo(payload))%0A  %7D%0A%7D%0A%0Afunction * subscribeSetPriority () %7B%0A  while (true) %7B%0A    const %7B payload %7D = yield take(types.setPriority)%0A    yield put(creators.setPriority(payload))%0A  %7D%0A%7D%0A%0Afunction * subscribeSetSortType () %7B%0A  while (true) %7B%0A    const %7B payload %7D = yield take(types.setSortType)%0A    yield put(creators.setSortType(payload))%0A  %7D%0A%7D%0A%0Afunction * subscribeSetOrder () %7B%0A  while (true) %7B%0A    const %7B payload %7D = yield take(types.setOrder)%0A    yield put(creators.setOrder(payload))%0A  %7D%0A%7D%0A%0Aexport const todosSaga = %5B%0A  subscribeSubmit,%0A  subscribeSetPriority,%0A  subscribeSetSortType,%0A  subscribeSetOrder%0A
 %5D%0A

add context mapping