listInitialState.js
519 Bytes
'use strict';
import {Record, List, Map} from 'immutable';
let InitialState = Record({
type: 'editor', // editor or tag
authorId: '',
tag: '',
author: new (Record({
isFetching: false,
error: null,
data: null,
})),
articles: new (Record({
ptr: false,
isFetching: false,
error: null,
list: null,
currentPage: 0,
pageCount: 0,
pageSize: 60,//60,
total: 0,
endReached: false,
})),
});
export default InitialState;