Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-div-100vh

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-div-100vh - npm Package Compare versions

Comparing version 0.7.0-beta.1 to 0.7.0

10

dist/cjs/index.js

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

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