reshow-return
Advanced tools
Comparing version 0.17.42 to 0.17.43
@@ -28,3 +28,3 @@ "use strict"; | ||
var reset = function reset(props, more) { | ||
var cleanKeys = ["immutable", "initStates", "pathStates", "excludeStates", "renewProps", "store", "storeLocator"].concat((0, _toConsumableArray2["default"])(more || [])); | ||
var cleanKeys = ["excludeStates", "immutable", "initStates", "pathStates", "renewProps", "store", "storeLocator", "shouldComponentUpdate"].concat((0, _toConsumableArray2["default"])(more || [])); | ||
var i = cleanKeys.length; | ||
@@ -31,0 +31,0 @@ |
@@ -16,2 +16,3 @@ "use strict"; | ||
* @property {boolean} [renewProps] | ||
* @property {function({prev:any, nextProps:any, nextState:any}):boolean} [shouldComponentUpdate] | ||
*/ | ||
@@ -32,6 +33,6 @@ | ||
excludeStates = _ref.excludeStates, | ||
renewProps = _ref.renewProps, | ||
shouldComponentUpdate = _ref.shouldComponentUpdate, | ||
_ref$immutable = _ref.immutable, | ||
immutable = _ref$immutable === void 0 ? true : _ref$immutable, | ||
_ref$renewProps = _ref.renewProps, | ||
renewProps = _ref$renewProps === void 0 ? true : _ref$renewProps; | ||
immutable = _ref$immutable === void 0 ? true : _ref$immutable; | ||
var state = (0, _reshowFlux.useConnect)(_connectOptions["default"])({ | ||
@@ -42,4 +43,5 @@ store: store, | ||
excludeStates: excludeStates, | ||
immutable: immutable, | ||
renewProps: renewProps | ||
renewProps: renewProps, | ||
shouldComponentUpdate: shouldComponentUpdate, | ||
immutable: immutable | ||
}); | ||
@@ -46,0 +48,0 @@ return state; |
{ | ||
"version": "0.17.42", | ||
"version": "0.17.43", | ||
"name": "reshow-return", | ||
@@ -4,0 +4,0 @@ "repository": { |
@@ -9,2 +9,7 @@ export default useReturn; | ||
renewProps?: boolean; | ||
shouldComponentUpdate?: (arg0: { | ||
prev: any; | ||
nextProps: any; | ||
nextState: any; | ||
}) => boolean; | ||
}; | ||
@@ -18,2 +23,3 @@ export type UseReturnType = (initStates: import('./connectOptions').InitStatesProps, store: import("reshow-flux-base").StoreObject<any, any>, payload?: UseReturnPayLoad) => any; | ||
* @property {boolean} [renewProps] | ||
* @property {function({prev:any, nextProps:any, nextState:any}):boolean} [shouldComponentUpdate] | ||
*/ | ||
@@ -20,0 +26,0 @@ /** |
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
56273
1634