Skip to content

Releases: alibaba/hooks

v1.5.0

22 Nov 12:51
Compare
Choose a tag to compare

Major changes:

💄 docs and demos rewrite
🎉 9 new hooks released: useMouse, useDebounce, useDebounceFn, useThrottle, useThrottleFn, usePrevious, useClickAway, useSessioonStorageState and useScroll.

Other changes

🐞fix state type of useLocalStorageState #123
💄enhance useLocalStorageState #146

v1.3.3

07 Nov 16:29
b6a3d30
Compare
Choose a tag to compare
  • 🎉add hooks use toggle and use boolean #122
  • 💄Refactored all documents
  • 💄useLocalStorageState support object,number and boolean #114
  • 💄useAsync add params & autoCancel #112

v1.3.2

01 Nov 03:40
02a71bb
Compare
Choose a tag to compare

🐞fix useAntdTable switch page bugs when filters are set

v1.3.1

25 Oct 12:14
5b8d97b
Compare
Choose a tag to compare
  • 🐞fix eslint auto add deps bug

v1.3.0

24 Oct 08:54
0c1e942
Compare
Choose a tag to compare
  • 🎉 add useSelections hook #96
  • 🎉 add useUpdateEffect hook and remove react-use deps #102 #103
  • 🎉 add usePagination hook #105
  • 💄useAntdTable support sorter, filters #106
  • 💄support optional deps #98
  • 💄rename useControlledValue to useControllableValue #99

v1.2.0

12 Oct 07:23
Compare
Choose a tag to compare
  • 🎉 add useEventEmitter hook #74
  • 🎉 add useVirtualList hook #75
  • 🎉 add useSize hook #85
  • 🎉 add useStorageState hook #87
  • 💄 simplify async function in useAPI #83
  • 💄 refactor typescript definition #88 #89

v1.1.1

30 Sep 06:45
Compare
Choose a tag to compare
  • 🐞fix useAntdTable async function deps cannt work bug

v1.1.0

26 Sep 08:39
Compare
Choose a tag to compare
  • 💄add test cases for useDynamicList #60
  • 💄remove the window reference for node environment #61 #62
  • 🐞fix memory leak when unmount useAsync in success or error callback #66

v1.0.1

08 Sep 12:53
Compare
Choose a tag to compare
  • 🐞useAsync throw error change to return #59

v1.0.0

06 Sep 12:49
Compare
Choose a tag to compare

2019-09-06

In 1.0.0, we released 8 new hooks that helps you build tables and forms, which are two major senarios in enterprise applications. A month from the 0.1.0 version was released, now it is ready for production.

Unlike other basic hooks libraries such as react-use and Rehooks, @umijs/hooks is specificly aiming at enterprise applications. It is highly integrated with Ant-Design UI library, and offers the whole logics you might need when building a form or table. That's the main differences between @umijs/hooks and others. We're building our hooks on top of them.

Major Changes

  • ⚡️refactor useLoadMore to use useAsync #52
  • 🌟useAntdTable now also cache the value even if the filter have not been searched yet #53
  • 💄useAPI default method setter renamed to configRequest #56
  • 💄add test cases for useAntdTable, useLoadMore and useAsync #54, #55

Bug fixes

  • 🐞useAntdTable initialValue not set correctly #53