sectionInitialState.js
831 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* # guideInitialState.js
*
*
*/
'use strict';
/**
* ## Import immutable record
*/
import {Record, List, Map, Stack} from 'immutable';
/**
* ## InitialState
*
* The fields we're concerned with
*/
let item = new (Record({
isFetching: false,
error: null,
id: 0,
name: '',
activeTab: 0,
ptr: true,
notice: new (Record({
duration: 3,
open: 'N',
list: List(),
})),
header: new (Record({
uri: '',
title: '',
desc: '',
post: '',
comment: '',
like: '',
})),
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,
})),
}));
let InitialState = Record({
sid: -1,
items: List(),
item: item,
});
export default InitialState;