Skip to content

Commit

Permalink
fix: watch fetch job saga, and add job reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
abalone0204 committed Jun 7, 2016
1 parent 6c86c67 commit 5de8447
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions front-end/app/reducers/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {combineReducers} from 'redux'
import comments from './comments.js'
import user from './user.js'

import job from './job.js'
const rootReducer = combineReducers({
comments,
user
user,
job
})

export default rootReducer
4 changes: 3 additions & 1 deletion front-end/app/sagas/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import {watchRequestLogin} from './login.js'
import {watchRequestLeaveComment} from './leaveComment.js'
import {watchRequestFetchComments} from './fetchComments.js'
import {watchRequestFetchJob} from './fetchJob.js'
export default function* rootSaga() {
yield [
watchRequestLogin(),
watchRequestLeaveComment(),
watchRequestFetchComments()
watchRequestFetchComments(),
watchRequestFetchJob()
]
}

0 comments on commit 5de8447

Please sign in to comment.