Skip to content

hooks2:2.1.0-alpha1

Compare
Choose a tag to compare
@junerver junerver released this 08 Oct 00:31
· 52 commits to master since this release
  • Reduced the use of tuples as return types for hooks
  • Introduced new parameters debounceOptionsOf and throttleOptionsOf in RequestOptions
  • Extended set/get delegate functions for PersistentHolder, Ref, and MutableRef
  • Refactored usePersistent
  • Refactored unwrap
  • Exposed HooksEventManager to allow communication between non-Compose and Compose sides via events
  • Added a new hook: useImmutableList
  • Refactored useRequest

  • 减少了使用元组作为钩子的返回类型
  • RequestOptions 中引入了新参数 debounceOptionsOfthrottleOptionsOf
  • 扩展了 PersistentHolderRefMutableRef 的 set/get 委托函数
  • 重构了 usePersistent
  • 重构了 unwrap
  • 公开了 HooksEventManager 以允许非 Compose 端和 Compose 端通过事件进行通信
  • 添加了新钩子:useImmutableList
  • 重构了 useRequest