Skip to content

Commit 393eb78

Browse files
committed
Merge branch 'main' into update-fork-17-6-0
2 parents 36a5342 + 14cdcf2 commit 393eb78

File tree

4 files changed

+453
-281
lines changed

4 files changed

+453
-281
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,17 @@
4444
* correct peer dependencies ([d770587](https://github.com/streamich/react-use/commit/d77058729654397b68b251e8211bf0edc0b4ed50))
4545

4646
## [17.4.1](https://github.com/streamich/react-use/compare/v17.4.0...v17.4.1) (2023-11-28)
47+
# v17.5.7 (Thu Aug 04 2022)
4748

49+
#### 🐛 Bug Fix
4850

49-
### Bug Fixes
51+
- :wrench: [#5](https://github.com/opencreek/react-use/pull/5) ([@reckter](https://github.com/reckter))
5052

51-
* 🐛 bump nano-css version ([812952b](https://github.com/streamich/react-use/commit/812952bb9ff004a844ec4285ad6c65d39597b11c))
53+
#### Authors: 1
54+
55+
- Hannes Güdelhöfer ([@reckter](https://github.com/reckter))
56+
57+
---
5258

5359
# v17.5.7 (Thu Aug 04 2022)
5460

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@
165165
"registry": "https://registry.npmjs.org/",
166166
"access": "public"
167167
},
168+
"publishConfig": {
169+
"registry": "https://registry.npmjs.org/",
170+
"access": "public"
171+
},
168172
"collective": {
169173
"type": "opencollective",
170174
"url": "https://opencollective.com/react-use"

src/useHoverDirty.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { off, on } from './misc/util';
44
// kudos: https://usehooks.com/
55
const useHoverDirty = (ref: RefObject<Element> | null, enabled: boolean = true) => {
66
if (process.env.NODE_ENV === 'development') {
7-
if (typeof ref !== 'object' || typeof ref.current === 'undefined') {
7+
if (ref != null && (typeof ref !== 'object' || typeof ref?.current === 'undefined')) {
88
console.error('useHoverDirty expects a single ref argument.');
99
}
1010
}

0 commit comments

Comments
 (0)