| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-03-12 | 5.0 kB | |
| v3.9.7 source code.tar.gz | 2026-03-12 | 621.2 kB | |
| v3.9.7 source code.zip | 2026-03-12 | 972.9 kB | |
| Totals: 3 Items | 1.6 MB | 0 | |
What's Changed
-
:bug: Bug 修复
-
由 @linhf123 贡献,在 https://github.com/alibaba/hooks/pull/2881 中为
useInfiniteScroll使用requestAnimationFrame来更新滚动位置。 - 由 @lvboda 贡献,在 https://github.com/alibaba/hooks/pull/2866 中修复了
useRequest在ready=false时runAsync未立即返回的问题(无 pending 状态)。 - 由 @Arktomson 贡献,在 https://github.com/alibaba/hooks/pull/2900 中为
useKeyPress添加了旧版 key 别名以提高兼容性。 - 由 @guaijie 贡献,在 https://github.com/alibaba/hooks/pull/2884 中修复了
useRafInterval在执行函数内部调用clear无效的问题。 -
由 @li-jia-nan 贡献,在 https://github.com/alibaba/hooks/pull/2912 中修复了相同 storage 状态导致重复渲染的问题。
-
:hammer_and_wrench: 代码重构
-
由 @JunlinZhu-Tommy 贡献,在 https://github.com/alibaba/hooks/pull/2887 中将
useUpdate中的useCallback替换为useMemoizedFn。 - 由 @li-jia-nan 贡献,在 https://github.com/alibaba/hooks/pull/2868 中进行了代码优化。
-
由 @nghiepdev 贡献,在 https://github.com/alibaba/hooks/pull/2859 中在
useIsomorphicLayoutEffect中使用noop替代useEffect。 -
:wrench: 性能优化
-
由 @li-jia-nan 贡献,在 https://github.com/alibaba/hooks/pull/2913 中进行了性能优化。
-
:book: 文档更新
-
由 @huangkevin-apr 贡献,在 https://github.com/alibaba/hooks/pull/2892 中为讨论组图片添加了
alt属性以提升可访问性。
-
:bug: Bug Fixes
-
Contributed by @linhf123, used
requestAnimationFrameto update scroll position inuseInfiniteScrollin https://github.com/alibaba/hooks/pull/2881. - Contributed by @lvboda, fixed the issue where
runAsyncdid not return immediately whenready=false(no pending) inuseRequestin https://github.com/alibaba/hooks/pull/2866. - Contributed by @Arktomson, added legacy key aliases for compatibility in
useKeyPressin https://github.com/alibaba/hooks/pull/2900. - Contributed by @guaijie, fixed the issue where calling
clearinside the execution function ofuseRafIntervaldid not take effect in https://github.com/alibaba/hooks/pull/2884. -
Contributed by @li-jia-nan, fixed unnecessary re-renders when the storage state remained the same in https://github.com/alibaba/hooks/pull/2912.
-
:hammer_and_wrench: Code Refactoring
-
Contributed by @JunlinZhu-Tommy, replaced
useCallbackwithuseMemoizedFninuseUpdatein https://github.com/alibaba/hooks/pull/2887. - Contributed by @li-jia-nan, performed code optimizations in https://github.com/alibaba/hooks/pull/2868.
-
Contributed by @nghiepdev, used
noopinstead ofuseEffectinuseIsomorphicLayoutEffectin https://github.com/alibaba/hooks/pull/2859. -
:wrench: Performance
-
Contributed by @li-jia-nan, performed performance optimizations in https://github.com/alibaba/hooks/pull/2913.
-
:book: Documentation Updates
-
Contributed by @huangkevin-apr, added
altattributes to discussion group images for accessibility in https://github.com/alibaba/hooks/pull/2892.
New Contributors
- @linhf123 made their first contribution in https://github.com/alibaba/hooks/pull/2881
- @huangkevin-apr made their first contribution in https://github.com/alibaba/hooks/pull/2892
- @lvboda made their first contribution in https://github.com/alibaba/hooks/pull/2866
- @nghiepdev made their first contribution in https://github.com/alibaba/hooks/pull/2859
- @JunlinZhu-Tommy made their first contribution in https://github.com/alibaba/hooks/pull/2887
Full Changelog: https://github.com/alibaba/hooks/compare/v3.9.6...v3.9.7