combinedReducers.tpl 648 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// WARNING
// THIS FILE HAS BEEN AUTOMATICALLY GENERATED
// WITH /frontend/generate/generate_frontend_files.js
// MODIFY THE FILE ABOVE IF YOUR NOT SATISFIED 
// THIS WARNING DOESN'T APPLY TO .tpl FILES...

import { combineReducers } from 'redux';

import {
{% for obj in data %}
  {{obj.name}}Fetched,
  {{obj.name}}HasError,
  {{obj.name}}IsLoading,
  {{obj.name}}Invalidated,
{% endfor %}
} from './reducers';

{% for obj in data %}
export const {{obj.name}}Reducers = combineReducers({
  fetched: {{obj.name}}Fetched,
  hasError: {{obj.name}}HasError,
  isLoading: {{obj.name}}IsLoading,
  invalidated: {{obj.name}}Invalidated,
})
{% endfor %}