Skip to content

Commit 9966243

Browse files
committed
v1.2.9
1 parent 1ba8923 commit 9966243

File tree

6 files changed

+56
-37
lines changed

6 files changed

+56
-37
lines changed

dist/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ interface optionType {
55
interval?: number;
66
timeout?: number;
77
}
8-
export declare const useHoverIntent: <T>(options?: optionType) => [boolean, Dispatch<SetStateAction<boolean>>, import("react").RefObject<HTMLElement & T>];
8+
export declare const useHoverIntent: <T>(options?: optionType) => [boolean, import("react").RefObject<HTMLElement & T>, Dispatch<SetStateAction<boolean>>];
99
export {};

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-use-hoverintent",
3-
"version": "1.2.8",
3+
"version": "1.2.9",
44
"description": "React hook for hoverIntent",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
@@ -17,7 +17,7 @@
1717
"devDependencies": {
1818
"@babel/cli": "7.19.3",
1919
"@babel/core": "7.19.3",
20-
"@babel/preset-env": "7.19.3",
20+
"@babel/preset-env": "7.19.4",
2121
"@babel/preset-react": "7.18.6",
2222
"@babel/preset-typescript": "7.18.6",
2323
"@types/react": "18.0.21",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-use-hoverintent",
3-
"version": "1.2.8",
3+
"version": "1.2.9",
44
"description": "React hook for hoverIntent",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
@@ -17,7 +17,7 @@
1717
"devDependencies": {
1818
"@babel/cli": "7.19.3",
1919
"@babel/core": "7.19.3",
20-
"@babel/preset-env": "7.19.3",
20+
"@babel/preset-env": "7.19.4",
2121
"@babel/preset-react": "7.18.6",
2222
"@babel/preset-typescript": "7.18.6",
2323
"@types/react": "18.0.21",

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export const useHoverIntent = <T>(
1818
options?: optionType
1919
): [
2020
boolean,
21-
Dispatch<SetStateAction<boolean>>,
22-
React.RefObject<HTMLElement & T>
21+
React.RefObject<HTMLElement & T>,
22+
Dispatch<SetStateAction<boolean>>
2323
] => {
2424
const { ref, sensitivity = 6, interval = 100, timeout = 0 } = options ?? {};
2525
const intentRef = useRef<HTMLElement & T>(null);
@@ -100,5 +100,5 @@ export const useHoverIntent = <T>(
100100

101101
useImperativeHandle(ref, () => intentRef.current, [intentRef]);
102102

103-
return [isHovering, setIsHovering, intentRef];
103+
return [isHovering, intentRef, setIsHovering];
104104
};

0 commit comments

Comments
 (0)