@react-aria/overlays
Advanced tools
Comparing version 3.0.0-nightly.689 to 3.0.0-nightly.693
@@ -31,3 +31,4 @@ var { | ||
useState, | ||
useContext | ||
useContext, | ||
useMemo | ||
} = _react2; | ||
@@ -593,3 +594,3 @@ | ||
let [modalCount, setModalCount] = useState(parent ? parent.modalCount : 0); | ||
let context = { | ||
let context = useMemo(() => ({ | ||
parent, | ||
@@ -614,3 +615,3 @@ modalCount, | ||
}; | ||
}), [parent, modalCount]); | ||
return /*#__PURE__*/_react.createElement($c5f9596976ab8bd94c5879001549a3e$var$Context.Provider, { | ||
@@ -617,0 +618,0 @@ value: context |
@@ -7,3 +7,3 @@ import { VisuallyHidden } from "@react-aria/visually-hidden"; | ||
import { useLocale, useMessageFormatter } from "@react-aria/i18n"; | ||
import _react, { useCallback, useEffect, useState, useContext } from "react"; | ||
import _react, { useCallback, useEffect, useState, useContext, useMemo } from "react"; | ||
import _domHelpersOwnerDocument from "dom-helpers/ownerDocument"; | ||
@@ -548,3 +548,3 @@ import _domHelpersQueryScrollTop from "dom-helpers/query/scrollTop"; | ||
let [modalCount, setModalCount] = useState(parent ? parent.modalCount : 0); | ||
let context = { | ||
let context = useMemo(() => ({ | ||
parent, | ||
@@ -569,3 +569,3 @@ modalCount, | ||
}; | ||
}), [parent, modalCount]); | ||
return /*#__PURE__*/_react.createElement($b876e5ac9c98db373bf726bce3d604e$var$Context.Provider, { | ||
@@ -572,0 +572,0 @@ value: context |
{ | ||
"name": "@react-aria/overlays", | ||
"version": "3.0.0-nightly.689+49ce1408", | ||
"version": "3.0.0-nightly.693+9d3b925e", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,9 +21,9 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/i18n": "3.0.0-nightly.689+49ce1408", | ||
"@react-aria/interactions": "3.0.0-nightly.689+49ce1408", | ||
"@react-aria/utils": "3.0.0-nightly.689+49ce1408", | ||
"@react-aria/visually-hidden": "3.0.0-nightly.689+49ce1408", | ||
"@react-stately/overlays": "3.1.1-nightly.2367+49ce1408", | ||
"@react-types/button": "3.2.1-nightly.2367+49ce1408", | ||
"@react-types/overlays": "3.2.1-nightly.2367+49ce1408", | ||
"@react-aria/i18n": "3.0.0-nightly.693+9d3b925e", | ||
"@react-aria/interactions": "3.0.0-nightly.693+9d3b925e", | ||
"@react-aria/utils": "3.0.0-nightly.693+9d3b925e", | ||
"@react-aria/visually-hidden": "3.0.0-nightly.693+9d3b925e", | ||
"@react-stately/overlays": "3.1.1-nightly.2371+9d3b925e", | ||
"@react-types/button": "3.2.1-nightly.2371+9d3b925e", | ||
"@react-types/overlays": "3.2.1-nightly.2371+9d3b925e", | ||
"dom-helpers": "^3.3.1" | ||
@@ -38,3 +38,3 @@ }, | ||
}, | ||
"gitHead": "49ce1408c9ebdc554886d22d5544718d22e61516" | ||
"gitHead": "9d3b925ee5bbea9d63db95a53a32d03e9a1a686e" | ||
} |
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
249617
2604