9 Commits

Author SHA1 Message Date
Victor Tiurin
6b708c880d fix for useWindowScroll may lose window scroll change at mount #1699
Update tests/useWindowScroll.test.tsx

Co-authored-by: Mathias <mathiassoeholm@gmail.com>

fix for useWindowScroll may lose window scroll change at mount #1699, fixes for review by mathiassoeholm

Update tests/useWindowScroll.test.tsx

Co-authored-by: Mathias <mathiassoeholm@gmail.com>
2021-03-11 10:50:54 +02:00
Renovate Bot
a27f09fd36
chore: refactoring and rearrangement.
More DRY code. Also move non-hooks to separate directories.

BREAKING CHANGE: all `create*` factories been moved to `factory` subdirectory and in case direct import should be imported like `react-use/esm/factory/createBreakpoint`
BREAKING CHANGE: `comps` directory renamed to `component`
2021-01-30 23:30:26 +03:00
ddaza
db07ab65bf updated formating and fixed errors 2020-07-02 14:56:15 -05:00
Ayush Goyal
67d65833d9 chore: disable eslint for affected files 2020-02-04 07:12:19 +05:30
Ward
00816a4ed0
feat: useRafState (#684) 2019-10-16 23:05:50 +11:00
jeemyeong
5987cc82cc feat: useWindowScroll - for cross-browser compatibility
For cross-browser compatibility, use window.pageYOffset instead of window.scrollY.
(https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY)
2019-07-22 20:44:55 +09:00
Ankith Konda
f02b92d423 Add TSLint + Prettier and fix lint issues 2019-04-12 23:18:11 +10:00
streamich
bc021ce550 fix: 🐛 cancel animation frame on un-mount in useWindowScroll() 2019-03-23 08:40:31 +01:00
Ward Oosterlijnck
874e9a9ba5 useWindowScroll hook 2019-03-23 16:46:04 +11:00