Socket
Socket
Sign inDemoInstall

reshow-hooks

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reshow-hooks - npm Package Compare versions

Comparing version 0.17.7 to 0.17.8

16

build/cjs/src/useLoaded.js

@@ -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

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