redux-persist
Advanced tools
Comparing version 5.0.0-rc.1 to 5.0.0-rc.2
@@ -47,2 +47,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; }; | ||
if (action.type === PERSIST) { | ||
// @NOTE only ever create persistoid once, ensure we call it at least once, even if _persist has already been set | ||
if (!_persistoid) _persistoid = createPersistoid(config); | ||
// @NOTE PERSIST can be called multiple times, noop after the first | ||
@@ -53,3 +56,2 @@ if (_persist) return state; | ||
action.register(config.key); | ||
_persistoid = createPersistoid(config); | ||
@@ -56,0 +58,0 @@ getStoredState(config).then(function (restoredState) { |
@@ -66,2 +66,5 @@ 'use strict'; | ||
if (action.type === _constants.PERSIST) { | ||
// @NOTE only ever create persistoid once, ensure we call it at least once, even if _persist has already been set | ||
if (!_persistoid) _persistoid = (0, _createPersistoid2.default)(config); | ||
// @NOTE PERSIST can be called multiple times, noop after the first | ||
@@ -72,3 +75,2 @@ if (_persist) return state; | ||
action.register(config.key); | ||
_persistoid = (0, _createPersistoid2.default)(config); | ||
@@ -75,0 +77,0 @@ getStoredState(config).then(function (restoredState) { |
{ | ||
"name": "redux-persist", | ||
"version": "5.0.0-rc.1", | ||
"version": "5.0.0-rc.2", | ||
"description": "persist and rehydrate redux stores", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -57,2 +57,5 @@ // @flow | ||
if (action.type === PERSIST) { | ||
// @NOTE only ever create persistoid once, ensure we call it at least once, even if _persist has already been set | ||
if (!_persistoid) _persistoid = createPersistoid(config) | ||
// @NOTE PERSIST can be called multiple times, noop after the first | ||
@@ -69,3 +72,2 @@ if (_persist) return state | ||
action.register(config.key) | ||
_persistoid = createPersistoid(config) | ||
@@ -72,0 +74,0 @@ getStoredState(config).then( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
162599
2326