redux-persist
Advanced tools
Comparing version 5.6.4 to 5.6.5
@@ -96,3 +96,4 @@ 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 inboundState = action.payload; | ||
var reconciledRest = stateReconciler !== false ? stateReconciler(inboundState, state, reducedState, config) : reducedState; | ||
// only reconcile state if stateReconciler and inboundState are both defined | ||
var reconciledRest = stateReconciler !== false && inboundState !== undefined ? stateReconciler(inboundState, state, reducedState, config) : reducedState; | ||
@@ -99,0 +100,0 @@ var _newState = _extends({}, reconciledRest, { |
@@ -115,3 +115,4 @@ 'use strict'; | ||
var inboundState = action.payload; | ||
var reconciledRest = stateReconciler !== false ? stateReconciler(inboundState, state, reducedState, config) : reducedState; | ||
// only reconcile state if stateReconciler and inboundState are both defined | ||
var reconciledRest = stateReconciler !== false && inboundState !== undefined ? stateReconciler(inboundState, state, reducedState, config) : reducedState; | ||
@@ -118,0 +119,0 @@ var _newState = _extends({}, reconciledRest, { |
{ | ||
"name": "redux-persist", | ||
"version": "5.6.4", | ||
"version": "5.6.5", | ||
"description": "persist and rehydrate redux stores", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -135,4 +135,5 @@ // @flow | ||
let inboundState = action.payload | ||
// only reconcile state if stateReconciler and inboundState are both defined | ||
let reconciledRest: State = | ||
stateReconciler !== false | ||
stateReconciler !== false && inboundState !== undefined | ||
? stateReconciler(inboundState, state, reducedState, config) | ||
@@ -139,0 +140,0 @@ : reducedState |
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
200073
2997