File tree 3 files changed +7
-9
lines changed
examples/isomorphic-flux-chat
3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,8 @@ ChatApp = NuclearAddons.provideReactor(ChatApp)
12
12
13
13
Chat . register ( reactor )
14
14
15
- // @todo : refactor to use new nuclear methods when 1.1 lands ?
16
- if ( window . window . reactor_state !== null ) {
17
- reactor . __state = Nuclear . Immutable . fromJS ( window . reactor_state )
15
+ if ( window . reactor_state !== null ) {
16
+ reactor . loadState ( window . reactor_state )
18
17
} else {
19
18
Chat . actions . receiveAll ( reactor , mockData )
20
19
}
Original file line number Diff line number Diff line change 7
7
"license" : " ISC" ,
8
8
"dependencies" : {
9
9
"keymirror" : " ^0.1.1" ,
10
- "nuclear-js" : " ^1.0.5 " ,
11
- "nuclear-js-react-addons" : " jordangarcia/nuclear-js-react-addons#049fe3cd9bbd230ce51aec7b443c438ccd70dbc9 " ,
10
+ "nuclear-js" : " ^1.1.1 " ,
11
+ "nuclear-js-react-addons" : " jordangarcia/nuclear-js-react-addons#051c39b10c4af9af7007216b06fccbdf79994529 " ,
12
12
"react" : " ^0.13.3" ,
13
13
"yargs" : " ^3.15.0"
14
14
},
15
15
"devDependencies" : {
16
16
"babel-core" : " ^5.7.4" ,
17
17
"babel-loader" : " ^5.3.2" ,
18
- "css-loader" : " ^0.14.5 " ,
19
- "eslint" : " ^0.24.1 " ,
18
+ "css-loader" : " ^0.16.0 " ,
19
+ "eslint" : " ^1.2.0 " ,
20
20
"nodemon" : " ^1.3.7" ,
21
21
"style-loader" : " ^0.12.3" ,
22
22
"webpack" : " ^1.10.0"
Original file line number Diff line number Diff line change @@ -57,9 +57,8 @@ http.createServer(function(req, res) {
57
57
58
58
/**
59
59
* Dehydrate reactor
60
- * @todo : refactor to use new nuclear methods when 1.1 lands ?
61
60
*/
62
- var _state = JSON . stringify ( reactor . __state . toJS ( ) )
61
+ var _state = JSON . stringify ( reactor . serialize ( ) )
63
62
returnHtml = returnHtml . replace ( 'window.reactor_state = null' , 'window.reactor_state = ' + _state )
64
63
65
64
/**
You can’t perform that action at this time.
0 commit comments