Socket
Socket
Sign inDemoInstall

rc-util

Package Overview
Dependencies
8
Maintainers
9
Versions
208
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.29.2 to 5.29.3

3

es/hooks/useMobile.js
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import { useLayoutEffect, useState } from 'react';
import { useState } from 'react';
import isMobile from "../isMobile";
import useLayoutEffect from "./useLayoutEffect";

@@ -5,0 +6,0 @@ /**

@@ -11,2 +11,3 @@ "use strict";

var _isMobile = _interopRequireDefault(require("../isMobile"));
var _useLayoutEffect = _interopRequireDefault(require("./useLayoutEffect"));
/**

@@ -21,3 +22,3 @@ * Hook to detect if the user is on a mobile device

setMobile = _useState2[1];
(0, _react.useLayoutEffect)(function () {
(0, _useLayoutEffect.default)(function () {
setMobile((0, _isMobile.default)());

@@ -24,0 +25,0 @@ }, []);

{
"name": "rc-util",
"version": "5.29.2",
"version": "5.29.3",
"description": "Common Utils For React Component",

@@ -5,0 +5,0 @@ "keywords": [

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