Skip to content

Commit bf1f452

Browse files
committed
reactUtils [nfc]: Stop passing a type argument that Flow infers just fine
1 parent a171c49 commit bf1f452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reactUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function useDebugAssertConstant<T>(value: T) {
6464
export const useHasStayedTrueForMs = (value: boolean, duration: number): boolean => {
6565
useDebugAssertConstant(duration);
6666

67-
const [result, setResult] = useState<boolean>(false);
67+
const [result, setResult] = useState(false);
6868

6969
useEffect(() => {
7070
if (value) {

0 commit comments

Comments
 (0)