remote-redux-devtools
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -323,2 +323,6 @@ 'use strict'; | ||
}; | ||
} | ||
} | ||
devTools.updateStore = function (newStore) { | ||
store = newStore; | ||
}; |
{ | ||
"name": "remote-redux-devtools", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Relay Redux actions to remote Redux DevTools.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -32,3 +32,7 @@ Remote Redux DevTools | ||
// Note: passing enhancer as last argument requires redux@>=3.1.0 | ||
return createStore(reducer, initialState, enhancer); | ||
const store = createStore(reducer, initialState, enhancer); | ||
// If you have other enhancers & middlewares | ||
// update the store after creating / changing to allow devTools to use them | ||
devTools.updateStore(store); | ||
return store; | ||
} | ||
@@ -81,3 +85,3 @@ ``` | ||
// Note: passing enhancer as last argument requires redux@>=3.1.0 | ||
return createStore( | ||
const store = createStore( | ||
rootReducer, | ||
@@ -89,4 +93,8 @@ initialState, | ||
maxAge: 30, filters: { blacklist: ['EFFECT_RESOLVED'] } | ||
}) | ||
}) | ||
); | ||
// If you have other enhancers & middlewares | ||
// update the store after creating / changing to allow devTools to use them | ||
devTools.updateStore(store); | ||
return store; | ||
} | ||
@@ -93,0 +101,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20690
309
110