react-use
Advanced tools
Comparing version 17.4.3 to 17.4.4
@@ -6,2 +6,3 @@ export interface StableActions<K> { | ||
reset: () => void; | ||
clear: () => void; | ||
} | ||
@@ -8,0 +9,0 @@ export interface Actions<K> extends StableActions<K> { |
@@ -18,3 +18,3 @@ import { __assign, __spreadArrays } from "tslib"; | ||
}; | ||
return { add: add, remove: remove, toggle: toggle, reset: function () { return setSet(initialSet); } }; | ||
return { add: add, remove: remove, toggle: toggle, reset: function () { return setSet(initialSet); }, clear: function () { return setSet(new Set()); } }; | ||
}, [setSet]); | ||
@@ -21,0 +21,0 @@ var utils = __assign({ has: useCallback(function (item) { return set.has(item); }, [set]) }, stableActions); |
@@ -6,2 +6,3 @@ export interface StableActions<K> { | ||
reset: () => void; | ||
clear: () => void; | ||
} | ||
@@ -8,0 +9,0 @@ export interface Actions<K> extends StableActions<K> { |
@@ -20,3 +20,3 @@ "use strict"; | ||
}; | ||
return { add: add, remove: remove, toggle: toggle, reset: function () { return setSet(initialSet); } }; | ||
return { add: add, remove: remove, toggle: toggle, reset: function () { return setSet(initialSet); }, clear: function () { return setSet(new Set()); } }; | ||
}, [setSet]); | ||
@@ -23,0 +23,0 @@ var utils = tslib_1.__assign({ has: react_1.useCallback(function (item) { return set.has(item); }, [set]) }, stableActions); |
{ | ||
"name": "react-use", | ||
"version": "17.4.3", | ||
"version": "17.4.4", | ||
"description": "Collection of React Hooks", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
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
537838
10323