redux-state-sync
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "redux-state-sync", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A middleware for redux to sync localstorage state in different tabs", | ||
@@ -5,0 +5,0 @@ "main": "syncStorage.js", |
@@ -34,3 +34,6 @@ import indexOf from 'lodash/indexOf'; | ||
const { stampedAction } = JSON.parse(event.newValue); | ||
if (stampedAction && stampedAction.$time !== lastTimeStamp && indexOf(ignore, stampedAction.type) < 0) { | ||
if (stampedAction | ||
&& stampedAction.$time | ||
!== lastTimeStamp | ||
&& indexOf(ignore, stampedAction.type) < 0) { | ||
lastTimeStamp = stampedAction.$time; | ||
@@ -37,0 +40,0 @@ store.dispatch(stampedAction); |
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
3925
37