Skip to content

Commit

Permalink
fix: always return something from effect
Browse files Browse the repository at this point in the history
  • Loading branch information
James committed Jun 17, 2019
1 parent d18d2d8 commit 3355426
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/useScrolling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const useScrolling = (ref: RefObject<HTMLElement>): boolean => {
}
};
}
return () => {};
}, [ref.current]);

return scrolling;
Expand Down

0 comments on commit 3355426

Please sign in to comment.