redux-persist
Advanced tools
Comparing version 5.7.1 to 5.7.2
@@ -323,2 +323,5 @@ (function (global, factory) { | ||
var _rehydrate = function _rehydrate(payload, err) { | ||
// dev warning if we are already sealed | ||
if ("development" !== 'production' && _sealed) console.error('redux-persist: rehydrate for "' + config.key + '" called after timeout.', payload, err); | ||
// only rehydrate if we are not already sealed | ||
@@ -329,4 +332,2 @@ if (!_sealed) { | ||
} | ||
if ("development" !== 'production' && _sealed) console.error('redux-persist: rehydrate for "' + config.key + '" called after timeout.', payload, err); | ||
}; | ||
@@ -333,0 +334,0 @@ timeout && setTimeout(function () { |
@@ -49,2 +49,5 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _rehydrate = function _rehydrate(payload, err) { | ||
// dev warning if we are already sealed | ||
if (process.env.NODE_ENV !== 'production' && _sealed) console.error('redux-persist: rehydrate for "' + config.key + '" called after timeout.', payload, err); | ||
// only rehydrate if we are not already sealed | ||
@@ -55,4 +58,2 @@ if (!_sealed) { | ||
} | ||
if (process.env.NODE_ENV !== 'production' && _sealed) console.error('redux-persist: rehydrate for "' + config.key + '" called after timeout.', payload, err); | ||
}; | ||
@@ -59,0 +60,0 @@ timeout && setTimeout(function () { |
@@ -68,2 +68,5 @@ 'use strict'; | ||
var _rehydrate = function _rehydrate(payload, err) { | ||
// dev warning if we are already sealed | ||
if (process.env.NODE_ENV !== 'production' && _sealed) console.error('redux-persist: rehydrate for "' + config.key + '" called after timeout.', payload, err); | ||
// only rehydrate if we are not already sealed | ||
@@ -74,4 +77,2 @@ if (!_sealed) { | ||
} | ||
if (process.env.NODE_ENV !== 'production' && _sealed) console.error('redux-persist: rehydrate for "' + config.key + '" called after timeout.', payload, err); | ||
}; | ||
@@ -78,0 +79,0 @@ timeout && setTimeout(function () { |
{ | ||
"name": "redux-persist", | ||
"version": "5.7.1", | ||
"version": "5.7.2", | ||
"description": "persist and rehydrate redux stores", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -72,8 +72,3 @@ // @flow | ||
let _rehydrate = (payload, err) => { | ||
// only rehydrate if we are not already sealed | ||
if (!_sealed) { | ||
action.rehydrate(config.key, payload, err) | ||
_sealed = true | ||
} | ||
// dev warning if we are already sealed | ||
if (process.env.NODE_ENV !== 'production' && _sealed) | ||
@@ -87,2 +82,8 @@ console.error( | ||
) | ||
// only rehydrate if we are not already sealed | ||
if (!_sealed) { | ||
action.rehydrate(config.key, payload, err) | ||
_sealed = true | ||
} | ||
} | ||
@@ -89,0 +90,0 @@ timeout && |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
382798
4119