sectionInitialState.js
760 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
/**
* # 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;