@pingux/astro 2.32.0-alpha.0 → 2.32.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export { default } from './useDebounce';
@@ -0,0 +1,6 @@
1
+ interface DebounceProps<T> {
2
+ value: T;
3
+ delay: number;
4
+ }
5
+ declare const useDebounce: <T>(props: DebounceProps<T>) => T;
6
+ export default useDebounce;
@@ -19,7 +19,7 @@ var useDebounce = function useDebounce(props) {
19
19
  (0, _react.useEffect)(function () {
20
20
  var handler = (0, _setTimeout2["default"])(function () {
21
21
  setDebouncedValue(value);
22
- }, [delay]);
22
+ }, delay);
23
23
  return function () {
24
24
  clearTimeout(handler);
25
25
  };
@@ -11,7 +11,7 @@ var useDebounce = function useDebounce(props) {
11
11
  useEffect(function () {
12
12
  var handler = _setTimeout(function () {
13
13
  setDebouncedValue(value);
14
- }, [delay]);
14
+ }, delay);
15
15
  return function () {
16
16
  clearTimeout(handler);
17
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.32.0-alpha.0",
3
+ "version": "2.32.0-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",