Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-persist

Package Overview
Dependencies
Maintainers
2
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-persist - npm Package Compare versions

Comparing version 5.2.0 to 5.2.1

LICENSE

5

es/integration/react.js

@@ -62,2 +62,5 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

return PersistGate;
}(PureComponent);
}(PureComponent);
PersistGate.defaultProps = {
loading: null
};

6

lib/integration/react.js

@@ -71,2 +71,6 @@ 'use strict';

return PersistGate;
}(_react.PureComponent);
}(_react.PureComponent);
PersistGate.defaultProps = {
loading: null
};
{
"name": "redux-persist",
"version": "5.2.0",
"version": "5.2.1",
"description": "persist and rehydrate redux stores",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -43,6 +43,3 @@ # Redux Persist

return (
<PersistGate
persistor={persistor}
loading={<Loading />}
>
<PersistGate persistor={persistor}>
{/* rest of app */}

@@ -171,2 +168,3 @@ </PersistGate>

- **[localForage](https://github.com/mozilla/localForage)** recommended for web
- **[electron storage](https://github.com/psperber/redux-persist-electron-storage)** Electron support via [electron store](https://github.com/sindresorhus/electron-store)
- **[redux-persist-filesystem-storage](https://github.com/robwalkerco/redux-persist-filesystem-storage)** react-native, to mitigate storage size limitations in android ([#199](https://github.com/rt2zz/redux-persist/issues/199), [#284](https://github.com/rt2zz/redux-persist/issues/284))

@@ -173,0 +171,0 @@ - **[redux-persist-node-storage](https://github.com/pellejacobs/redux-persist-node-storage)** for use in nodejs environments.

@@ -9,3 +9,3 @@ // @flow

children?: Node,
loading: Node,
loading?: Node,
persistor: Persistor,

@@ -19,2 +19,6 @@ }

export class PersistGate extends PureComponent<Props, State> {
static defaultProps = {
loading: null
}
state = {

@@ -21,0 +25,0 @@ bootstrapped: false,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc