@reach/auto-id
Advanced tools
Comparing version 0.7.3 to 0.7.4
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var react = require('react'); | ||
@@ -86,5 +88,5 @@ | ||
var _a = react.useState(initialId), | ||
id = _a[0], | ||
setId = _a[1]; | ||
var _useState = react.useState(initialId), | ||
id = _useState[0], | ||
setId = _useState[1]; | ||
@@ -91,0 +93,0 @@ react.useLayoutEffect(function () { |
@@ -1,2 +0,2 @@ | ||
"use strict";var t=require("react"),u=!1,e=0,n=function(){return++e};exports.useId=function(e){var r=e||(u?n():null),c=t.useState(r),f=c[0],i=c[1];return t.useLayoutEffect((function(){null===f&&i(n())}),[]),t.useEffect((function(){!1===u&&(u=!0)}),[]),null!=f?String(f):void 0}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=!1,u=0,n=function(){return++u};exports.useId=function(u){var r=u||(t?n():null),o=e.useState(r),c=o[0],f=o[1];return e.useLayoutEffect((function(){null===c&&f(n())}),[]),e.useEffect((function(){!1===t&&(t=!0)}),[]),null!=c?String(c):void 0}; | ||
//# sourceMappingURL=auto-id.cjs.production.min.js.map |
@@ -84,5 +84,5 @@ import { useState, useLayoutEffect, useEffect } from 'react'; | ||
var _a = useState(initialId), | ||
id = _a[0], | ||
setId = _a[1]; | ||
var _useState = useState(initialId), | ||
id = _useState[0], | ||
setId = _useState[1]; | ||
@@ -89,0 +89,0 @@ useLayoutEffect(function () { |
@@ -1,1 +0,1 @@ | ||
import "@testing-library/jest-dom/extend-expect"; | ||
export {}; |
{ | ||
"name": "@reach/auto-id", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "Autogenerate IDs to facilitate WAI-ARIA and server rendering.", | ||
@@ -28,3 +28,3 @@ "author": "React Training <hello@reacttraining.com>", | ||
], | ||
"gitHead": "fe739beb1d94cc58c4e72f88ab58efa58e0de8c8" | ||
"gitHead": "f460709e283a60dd5ea62952b7feaf88546a50ff" | ||
} |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
27449
234