Skip to content

Commit b44f14e

Browse files
committed
reactUtils [nfc]: Convert an arrow function into a regular declaration
1 parent 4081406 commit b44f14e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reactUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function useDebugAssertConstant<T>(value: T) {
6868
* that in particular this hook gets called again) whenever `value` will
6969
* have changed; for example, by using a prop or a `useState` value.
7070
*/
71-
export const useHasNotChangedForMs = (value: mixed, duration: number): boolean => {
71+
export function useHasNotChangedForMs(value: mixed, duration: number): boolean {
7272
useDebugAssertConstant(duration);
7373

7474
const [result, setResult] = useState(false);
@@ -92,7 +92,7 @@ export const useHasNotChangedForMs = (value: mixed, duration: number): boolean =
9292
]);
9393

9494
return result;
95-
};
95+
}
9696

9797
/**
9898
* True just when `value` has been true continuously for the past `duration`.

0 commit comments

Comments
 (0)