Socket
Socket
Sign inDemoInstall

@shopify/react-hooks

Package Overview
Dependencies
Maintainers
24
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.0 to 4.1.1

2

build/cjs/hooks/media.js

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

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

@@ -13,0 +13,0 @@ useEffectHook(() => {

@@ -1,7 +0,7 @@

export declare const useMedia: (query: string, { initialValue }: {
export declare const useMedia: (query: string, { initialValue }?: {
initialValue?: boolean;
}) => boolean;
export declare const useMediaLayout: (query: string, { initialValue }: {
export declare const useMediaLayout: (query: string, { initialValue }?: {
initialValue?: boolean;
}) => boolean;
//# sourceMappingURL=media.d.ts.map
{
"name": "@shopify/react-hooks",
"version": "4.1.0",
"version": "4.1.1",
"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

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