Skip to content

Releases: xnimorz/use-debounce

10.0.6

01 Sep 22:39
d2481ea

Choose a tag to compare

What's Changed

Full Changelog: 10.0.5...10.0.6

10.0.5

16 Aug 19:34
cc9831c

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 10.0.4...10.0.5

v10.0.4

13 Oct 18:07

Choose a tag to compare

  • Fix behaviour for strictMode react when leading is set to true and trailing is true

v10.0.2

28 Jul 11:59
460b1df

Choose a tag to compare

  • Fixed: isPending does not reset the state if the tracked value hasn't changed.. See #178

v10.0.1

26 May 08:57

Choose a tag to compare

  • Fixed flush method return args, thanks to @h

v10.0.0

05 Nov 23:37
24fc538

Choose a tag to compare

  • ❗️ [Major breaking change] replaced index.modern.js with index.mjs. Might require a little change in your build pipeline
  • ❗️ [Major breaking change] New option debounceOnServer: if you put the option to true, it will run debouncing on server (via setTimeout). The new option can break your current server behaviour, as v9.x, it runs all the time and might cause unnessesary server CPU utilisation. Now, by default, debounced callbacks do not happen on server.
  • ❕[Minor breaking change]: Replaced useState for useDebounce with useReducer. It might lead to reduced amount of re-renders, as useState is known to have excess re-renders in some corner: https://stackoverflow.com/questions/57652176/react-hooks-usestate-setvalue-still-rerender-one-more-time-when-value-is-equal
  • ❕[Minor breaking change]: useDebouncedCallback now updates function to call asap. Meaning, if you re-called the hook and it should trigger immediately, it will trigger the newest function all the time.
  • ℹ Lib size:
    • 914 B: index.js.gz
    • 851 B: index.js.br
    • 883 B: index.mjs.gz
    • 826 B: index.mjs.br
    • 938 B: index.module.js.gz
    • 873 B: index.module.js.br
    • 989 B: index.umd.js.gz
    • 919 B: index.umd.js.br
  • ℹ [Internal] Replaced Enzyme with testing-library
  • ℹ [Internal] yarn classic => npm
  • ℹ [Internal] Updated devDependencies

v9.0.4

05 Apr 23:28

Choose a tag to compare

v9.0.3

13 Jan 00:03
d9b83bd

Choose a tag to compare

  • Represent correct return type from useDebounce(), see issue, thanks to @appden

v9.0.1

29 Nov 01:38

Choose a tag to compare

Fix the bug with the incorrect import path. Now it's index.cjs, instead of index.js

v9.0.0

28 Nov 23:27

Choose a tag to compare

  • Moved use-debounce to support modules see issue Thank to @matewilk
  • breaking change The path to dist/index.js is changed. Now it's dist/index.cjs.