@react-md/portal
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -6,2 +6,14 @@ # Change Log | ||
# [3.1.0](https://github.com/mlaursen/react-md/compare/v3.0.1...v3.1.0) (2021-09-10) | ||
### Other Internal Changes | ||
* ran `yarn format` to include new files ([48d3d7f](https://github.com/mlaursen/react-md/commit/48d3d7fddb0435edf7dec9d0ba38cf3f0f251709)) | ||
# [3.0.0](https://github.com/mlaursen/react-md/compare/v2.9.1...v3.0.0) (2021-08-13) | ||
@@ -8,0 +20,0 @@ |
@@ -15,8 +15,8 @@ "use strict"; | ||
var into = _a.into, intoId = _a.intoId, children = _a.children; | ||
var _b = react_1.useState(null), container = _b[0], setContainer = _b[1]; | ||
var _b = (0, react_1.useState)(null), container = _b[0], setContainer = _b[1]; | ||
// setting the container via useEffect instead of immediately in the render | ||
// just so that it doesn't throw an error immediately if the dom hasn't fully | ||
// painted after a SSR | ||
react_1.useEffect(function () { | ||
var nextContainer = getContainer_1.getContainer(into, intoId); | ||
(0, react_1.useEffect)(function () { | ||
var nextContainer = (0, getContainer_1.getContainer)(into, intoId); | ||
if (container !== nextContainer) { | ||
@@ -29,3 +29,3 @@ setContainer(nextContainer); | ||
} | ||
return react_dom_1.createPortal(children, container); | ||
return (0, react_dom_1.createPortal)(children, container); | ||
} | ||
@@ -32,0 +32,0 @@ exports.Portal = Portal; |
{ | ||
"name": "@react-md/portal", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "This package is for including icons within react-md. There is included support for both font icons and SVG icons. There is also a helper component for applying spacing between icons and text.", | ||
@@ -46,3 +46,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "a9995e084480006a77f9123b95ce7275998fb406" | ||
"gitHead": "5891a3255f12fb34d2cc82d81d10f85f712a21e8" | ||
} |
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
38133