@@ -35,7 +35,6 @@ const devToolsExtension = function(reducer, preloadedState, config) {
3535 let errorOccurred = false ;
3636 let maxAge ;
3737 let actionCreators ;
38- let shouldSerialize ;
3938 let serializeState ;
4039 let serializeAction ;
4140 let sendingActionId = 1 ;
@@ -58,12 +57,10 @@ const devToolsExtension = function(reducer, preloadedState, config) {
5857 if ( typeof config . serializeState !== 'undefined' ) {
5958 serializeState = config . serializeState ;
6059 if ( typeof serializeState === 'function' ) serializeState = { replacer : serializeState } ;
61- else shouldSerialize = true ;
6260 }
6361 if ( typeof config . serializeAction !== 'undefined' ) {
6462 serializeAction = config . serializeAction ;
6563 if ( typeof serializeAction === 'function' ) serializeAction = { replacer : serializeAction } ;
66- else shouldSerialize = true ;
6764 }
6865
6966 const monitor = new Monitor ( relayState ) ;
@@ -79,7 +76,7 @@ const devToolsExtension = function(reducer, preloadedState, config) {
7976 } ) ;
8077 toContentScript ( {
8178 type : 'EXPORT' , payload, committedState : liftedState . committedState , source, instanceId
82- } , serializeState , serializeAction , shouldSerialize ) ;
79+ } , true , true ) ;
8380 }
8481
8582 function relay ( type , state , action , nextActionId , shouldInit ) {
@@ -101,7 +98,7 @@ const devToolsExtension = function(reducer, preloadedState, config) {
10198 message . name = config . name || document . title ;
10299 }
103100
104- toContentScript ( message , serializeState , serializeAction , shouldSerialize ) ;
101+ toContentScript ( message , serializeState , serializeAction ) ;
105102 }
106103
107104 const relayState = throttle ( ( liftedState , actions , shouldInit ) => {
@@ -149,7 +146,7 @@ const devToolsExtension = function(reducer, preloadedState, config) {
149146 source,
150147 instanceId,
151148 maxAge
152- } , serializeState , serializeAction , shouldSerialize ) ;
149+ } , serializeState , serializeAction ) ;
153150 } , latency ) ;
154151
155152 function dispatchRemotely ( action ) {
0 commit comments