Skip to content

Commit a9be060

Browse files
committed
ignore refs rule in useIsInitialMount
1 parent 8c06d46 commit a9be060

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/hooks/utils/useIsInitialMount.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ export function useIsInitialMount(): boolean {
1414
}
1515
}, [])
1616

17+
// eslint-disable-next-line react-hooks/refs
1718
return isInitialMountRef.current
1819
}

0 commit comments

Comments
 (0)