chore: Update flow just far enough to get hooks libdefs (#1348)

This commit is contained in:
Tom Moor
2020-07-13 20:23:15 -07:00
committed by GitHub
parent f4a4f034cf
commit 943a290b83
8 changed files with 5 additions and 13 deletions

View File

@ -13,11 +13,9 @@ type Props = {
};
export default function Contents({ headings }: Props) {
// $FlowFixMe
const [activeSlug, setActiveSlug] = React.useState();
const position = useWindowScrollPosition({ throttle: 100 });
// $FlowFixMe
React.useEffect(
() => {
for (let key = 0; key < headings.length; key++) {