react-media-hook
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -18,3 +18,5 @@ var React = require('react') | ||
function useMedia (query) { | ||
var result = React.useState(omitMatchMediaResult(fallbackMathMedia(query))) | ||
var result = React.useState(function () { | ||
return omitMatchMediaResult(fallbackMathMedia(query)) | ||
}) | ||
var setResult = result[1] | ||
@@ -21,0 +23,0 @@ |
{ | ||
"name": "react-media-hook", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "React Hook for media query", | ||
@@ -17,3 +17,3 @@ "scripts": { | ||
], | ||
"limit": "186 B", | ||
"limit": "188 B", | ||
"path": "./index.js" | ||
@@ -20,0 +20,0 @@ } |
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
4467
40