Socket
Socket
Sign inDemoInstall

react-hook-popup

Package Overview
Dependencies
3
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0-alpha.0 to 1.1.0-alpha.1

10

dist/hooks/usePopup.js

@@ -9,6 +9,12 @@ "use strict";

var _b = react_1.useState(undefined), confirmPromise = _b[0], setConfirmPromise = _b[1];
react_1.useEffect(function () {
function initializePopup() {
setConfirmPromise(new Promise(function (resolve) {
registerPopup(key, popupRenderer, resolve);
registerPopup(key, popupRenderer, function (val) {
resolve(val);
initializePopup();
});
}));
}
react_1.useEffect(function () {
initializePopup();
return function () {

@@ -15,0 +21,0 @@ unRegisterPopup(key);

2

package.json
{
"name": "react-hook-popup",
"version": "1.1.0-alpha.0",
"version": "1.1.0-alpha.1",
"description": "Easily manage popups like alerts and modals in React with a single hook",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/aidanjw1/react-hook-popup#readme",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc