reshow-hooks
Advanced tools
Comparing version 0.17.7 to 0.17.8
@@ -12,14 +12,18 @@ "use strict"; | ||
var _reshowConstant = require("reshow-constant"); | ||
var useLoaded = function useLoaded(onChange) { | ||
var _useState = (0, _react.useState)(function () { | ||
var _useReducer = (0, _react.useReducer)(function () { | ||
return _reshowConstant.T_TRUE; | ||
}, _reshowConstant.T_FALSE, function (bool) { | ||
var _callfunc; | ||
return (_callfunc = (0, _callFunc["default"])(onChange, [false])) !== null && _callfunc !== void 0 ? _callfunc : false; | ||
return (_callfunc = (0, _callFunc["default"])(onChange, [bool])) !== null && _callfunc !== void 0 ? _callfunc : bool; | ||
}), | ||
isLoad = _useState[0], | ||
setIsLoad = _useState[1]; | ||
isLoad = _useReducer[0], | ||
setIsLoad = _useReducer[1]; | ||
(0, _react.useEffect)(function () { | ||
setIsLoad(true); | ||
(0, _callFunc["default"])(onChange, [true]); | ||
setIsLoad(); | ||
(0, _callFunc["default"])(onChange, [_reshowConstant.T_TRUE]); | ||
}, []); | ||
@@ -26,0 +30,0 @@ return isLoad; |
{ | ||
"version": "0.17.7", | ||
"version": "0.17.8", | ||
"name": "reshow-hooks", | ||
@@ -24,3 +24,4 @@ "repository": { | ||
"dependencies": { | ||
"call-func": "*" | ||
"call-func": "*", | ||
"reshow-constant": "*" | ||
}, | ||
@@ -27,0 +28,0 @@ "devDependencies": { |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
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
13414
346
2
3
+ Addedreshow-constant@*