react-div-100vh
Advanced tools
Comparing version 0.7.0-beta.1 to 0.7.0
@@ -47,3 +47,3 @@ "use strict"; | ||
var warned = false; | ||
var Div100vh = react_1.forwardRef(function (_a, ref) { | ||
var Div100vh = (0, react_1.forwardRef)(function (_a, ref) { | ||
var style = _a.style, other = __rest(_a, ["style"]); | ||
@@ -62,5 +62,5 @@ var height = use100vh(); | ||
function use100vh() { | ||
var _a = react_1.useState(measureHeight), height = _a[0], setHeight = _a[1]; | ||
var _a = (0, react_1.useState)(measureHeight), height = _a[0], setHeight = _a[1]; | ||
var wasRenderedOnClientAtLeastOnce = useWasRenderedOnClientAtLeastOnce(); | ||
react_1.useEffect(function () { | ||
(0, react_1.useEffect)(function () { | ||
if (!wasRenderedOnClientAtLeastOnce) | ||
@@ -89,4 +89,4 @@ return; | ||
function useWasRenderedOnClientAtLeastOnce() { | ||
var _a = react_1.useState(false), wasRenderedOnClientAtLeastOnce = _a[0], setWasRenderedOnClientAtLeastOnce = _a[1]; | ||
react_1.useEffect(function () { | ||
var _a = (0, react_1.useState)(false), wasRenderedOnClientAtLeastOnce = _a[0], setWasRenderedOnClientAtLeastOnce = _a[1]; | ||
(0, react_1.useEffect)(function () { | ||
if (isClient()) { | ||
@@ -93,0 +93,0 @@ setWasRenderedOnClientAtLeastOnce(true); |
{ | ||
"name": "react-div-100vh", | ||
"version": "0.7.0-beta.1", | ||
"version": "0.7.0", | ||
"description": "A workaround for the '100vh' issue in mobile browsers", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
12387