just-paja/improtresk-web

View on GitHub
src/news/reducers/newsDetail.js

Summary

Maintainability
A
0 mins
Test Coverage
import { combine } from 'react-saga-rest'
import { newsDetailFetch } from '../actions'

import createFetchReducers, { initialState } from '../../reducers/createFetchReducers'

export default combine(initialState, createFetchReducers({
  routine: newsDetailFetch,
  identAttr: 'id'
}))