@jbpark/use-hooks 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ A collection of reusable React 19 hooks for common UI and interaction patterns.
|
|
|
11
11
|
|
|
12
12
|
## Features
|
|
13
13
|
|
|
14
|
-
- 📦 **
|
|
14
|
+
- 📦 **11 Production-Ready Hooks** - Utilities for scrolling, viewport, storage, and more
|
|
15
15
|
- 🎯 **Full TypeScript Support** - Complete type definitions for better development experience
|
|
16
16
|
- ⚡ **Tree-Shakeable** - Import only what you need
|
|
17
17
|
- 🔒 **SSR-Safe** - Built-in protection for window/document globals
|
|
@@ -74,6 +74,7 @@ function MyComponent() {
|
|
|
74
74
|
| `useImage` | Preload images and expose loading/error states |
|
|
75
75
|
| `useRecursiveTimeout` | Recursively schedule async/sync callbacks |
|
|
76
76
|
| `useViewport` | visualViewport support with in-app mode option and debounce |
|
|
77
|
+
| `useDebounce` | Delay function execution to prevent excessive updates (autoInvoke support) |
|
|
77
78
|
|
|
78
79
|
## Development
|
|
79
80
|
|
|
@@ -100,6 +101,7 @@ pnpm exec prettier --write .
|
|
|
100
101
|
src/
|
|
101
102
|
├── hooks/ # Individual hook implementations
|
|
102
103
|
│ ├── useBodyScrollLock/
|
|
104
|
+
│ ├── useDebounce/
|
|
103
105
|
│ ├── useElementPosition/
|
|
104
106
|
│ ├── useElementScroll/
|
|
105
107
|
│ ├── useImage/
|