Socket
Socket
Sign inDemoInstall

@shopify/react-hooks

Package Overview
Dependencies
Maintainers
0
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-hooks - npm Package Compare versions

Comparing version 4.1.1 to 4.1.2

2

build/cjs/hooks/media.js

@@ -11,3 +11,3 @@ 'use strict';

} = {}) => {
const [match, setMatch] = React.useState(() => initialValue === undefined ? window.matchMedia(query).matches : Boolean(initialValue));
const [match, setMatch] = React.useState(() => initialValue === undefined && typeof window !== 'undefined' ? window.matchMedia(query).matches : Boolean(initialValue));
useEffectHook(() => {

@@ -14,0 +14,0 @@ if (!window || !window.matchMedia) {

{
"name": "@shopify/react-hooks",
"version": "4.1.1",
"version": "4.1.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "A collection of primitive React hooks",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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