@shopify/react-hooks
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -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
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
38009