redux-persist
Advanced tools
Comparing version 5.2.0 to 5.2.1
@@ -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 | ||
}; |
@@ -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
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
192867
113
2698
198