1.3.0
次版本更新
- 065d7c1: Add
useCounter,useMap,useSet, anduseCopyToClipboardto the public API.
版本历史
按时间倒序展示 better-hooks 的全部已发布版本及其 Changeset 变更内容。
useCounter, useMap, useSet, and useCopyToClipboard to the public API.useCounter, useMap, useSet, and useCopyToClipboard with stable actions, SSR-safe boundaries, and observable clipboard errors.useKeyPress when its event list changes, and report media listener setup and cleanup failures through onError.useWebSocket, useIntersectionObserver, and useResizeObserver with SSR-safe snapshots, stable actions, and observable error handling.better-hooks/use-storage export is removed; import useLocalStorage from
better-hooks/use-local-storage and useSessionStorage from
better-hooks/use-session-storage instead. Keyboard filter arrays now
represent alternatives only; use strings such as ctrl+s for chords. Error
observers can no longer replace the original thrown error or rejected promise
when the observer itself fails.