@@ -34,7 +34,7 @@ window.devToolsExtension = function(reducer, preloadedState, config) {
3434 const monitor = new Monitor ( relayState ) ;
3535 if ( config . getMonitor ) config . getMonitor ( monitor ) ;
3636
37- function relay ( type , state , action , nextActionId ) {
37+ function relay ( type , state , action , nextActionId , shouldInit ) {
3838 const message = {
3939 type,
4040 payload : filterState ( state , type , localFilter , statesFilter , actionsFilter , nextActionId ) ,
@@ -46,7 +46,7 @@ window.devToolsExtension = function(reducer, preloadedState, config) {
4646 message . action = ! actionsFilter ? action : actionsFilter ( action . action , nextActionId - 1 ) ;
4747 message . isExcess = isExcess ;
4848 message . nextActionId = nextActionId ;
49- } else if ( action ) {
49+ } else if ( shouldInit ) {
5050 message . action = action ;
5151 message . name = config . name || document . title ;
5252 }
@@ -58,8 +58,8 @@ window.devToolsExtension = function(reducer, preloadedState, config) {
5858 }
5959 }
6060
61- function relayState ( actions ) {
62- relay ( 'STATE' , store . liftedStore . getState ( ) , actions ) ;
61+ function relayState ( actions , shouldInit ) {
62+ relay ( 'STATE' , store . liftedStore . getState ( ) , actions , undefined , shouldInit ) ;
6363 }
6464
6565 function dispatchRemotely ( action ) {
@@ -93,7 +93,7 @@ window.devToolsExtension = function(reducer, preloadedState, config) {
9393 if ( ! actionCreators && config . actionCreators ) {
9494 actionCreators = getActionsArray ( config . actionCreators ) ;
9595 }
96- relayState ( JSON . stringify ( actionCreators ) ) ;
96+ relayState ( JSON . stringify ( actionCreators ) , true ) ;
9797
9898 if ( reportId ) {
9999 relay ( 'GET_REPORT' , reportId ) ;
0 commit comments