sectionInitialState.js 760 Bytes
/**
 * # guideInitialState.js
 *
 *
 */
'use strict';
/**
 * ## Import immutable record
 */
import {Record, List, Map} from 'immutable';

/**
 * ## InitialState
 *
 * The fields we're concerned with
 */
let InitialState = Record({
	isFetching: false,
	error: null,
	id: 0,
	name: '',
	activeTab: 0,
	ptr: false,
	notice: new (Record({
		duration: 3,
		open: 'Y',
		list: List(),
	})),
	header: new (Record({
		uri: '',
		title: '',
		post: 0,
		comment: 0,
		like: 0,
	})),
	hot: new (Record({
		isFetching: false,
		error: null,
		lastedTime: 0,
		list: List(),
		endReached: false,
	})),
	new: new (Record({
		isFetching: false,
		error: null,
		lastedTime: 0,
		list: List(),
		endReached: false,
	})),
	previousScene: '',
});

export default InitialState;