@uiw/react-amap-utils
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -40,4 +40,8 @@ "use strict"; | ||
var remove = function remove(elm) { | ||
var _ref$current; | ||
elm && ((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.unmount()); | ||
// https://stackoverflow.com/a/74445760/1334703 | ||
var timeout = setTimeout(function () { | ||
var _ref$current; | ||
elm && ((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.unmount()); | ||
clearTimeout(timeout); | ||
}); | ||
}; | ||
@@ -44,0 +48,0 @@ return { |
@@ -24,4 +24,8 @@ import React, { useState, useEffect, useRef } from 'react'; | ||
var remove = elm => { | ||
var _ref$current; | ||
elm && ((_ref$current = ref.current) == null ? void 0 : _ref$current.unmount()); | ||
// https://stackoverflow.com/a/74445760/1334703 | ||
var timeout = setTimeout(() => { | ||
var _ref$current; | ||
elm && ((_ref$current = ref.current) == null ? void 0 : _ref$current.unmount()); | ||
clearTimeout(timeout); | ||
}); | ||
}; | ||
@@ -28,0 +32,0 @@ return { |
{ | ||
"name": "@uiw/react-amap-utils", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "基于 React 封装的高德地图组件。AMap Component Based On React.", | ||
@@ -37,4 +37,4 @@ "funding": "https://jaywcjlove.github.io/#/sponsor", | ||
"dependencies": { | ||
"@uiw/react-amap-types": "7.0.0" | ||
"@uiw/react-amap-types": "7.0.1" | ||
} | ||
} |
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
26697
772
+ Added@uiw/react-amap-types@7.0.1(transitive)
- Removed@uiw/react-amap-types@7.0.0(transitive)
Updated@uiw/react-amap-types@7.0.1