streamich
2e91e5396e
chore: 🤖 catch up with master
2020-02-03 23:09:33 +01:00
dizel3d
4f6d3887be
fix(useIntersection): return null if IntersectionObserver is not supported
2020-01-28 00:26:08 +03:00
dizel3d
3f8687e1f5
fix(useIntersection): reset an intersectionObserverEntry when the ref changes
2020-01-28 00:25:57 +03:00
dizel3d
ac2f54a8f6
fix(useIntersection): disconnect an old IntersectionObserver instance when the ref changes
2020-01-27 23:57:36 +03:00
Kuss
a0d61b5ea1
optional parameter and update test
2020-01-24 17:27:58 +08:00
Kuss
45681b88e3
feat: add useLongPress hook
2020-01-23 13:03:45 +08:00
Mateusz Leonowicz
dc07e0e3b9
add setAll instead of overloading reset
2020-01-17 15:56:37 +00:00
Vadim Dalecky
5d4785750d
Merge pull request #899 from cleverjam/useCopyToClipboard-tests
...
refactor: use copy to clipboard
2020-01-17 00:31:04 -08:00
streamich
973a11fdb5
chore: 🤖 catch up with master
2020-01-17 09:24:06 +01:00
Jaime Liz
f17c8a0f8e
fix: remove console log 🤓
2020-01-16 19:43:35 -06:00
Jaime Liz
aaefdf8535
test: update test to include empty string as invalid
2020-01-16 19:41:43 -06:00
Jaime Liz
d219ffa1ec
test: add dev logging test case and reset mocks
2020-01-16 19:17:50 -06:00
Jaime Liz
6d5624eee2
test: update case wording
2020-01-16 19:07:04 -06:00
Jaime Liz
b13667b55c
test: add more test cases
2020-01-16 18:55:50 -06:00
Ayush Goyal
65f3644205
feat: add useError hook
2020-01-16 21:13:35 +05:30
Jaime Liz
61dcb1f1e2
test: add use copy to clipboard test
2020-01-15 20:31:10 -06:00
Ayush Goyal
5316510bab
feat: add serializer/deserializer option to useLocalStorage
2020-01-15 23:14:17 +05:30
Vadim Dalecky
b8b3e479ce
feat: add option to useTitle to restore title on un-mount
2020-01-14 07:28:45 -08:00
zsh2401
8faa71f9ac
useTitle could restore title optionally
2020-01-14 14:47:58 +08:00
Ayush Goyal
69c698afea
chore: fix act warning in useAsync tests
...
* fix: act warning in useAsync.test
* fix: remove the comment
2020-01-13 07:55:09 -08:00
streamich
72658e42e9
chore: 🤖 catch-up with master
2020-01-12 18:27:51 +01:00
streamich
def75839d7
style: 💄 run Prettier
2020-01-12 17:55:53 +01:00
streamich
bf11131052
feat: 🎸 remove resize-observer-polyfill from useMeasure
...
BREAKING CHANGE: resize-observer-polyfill package is not used with useMeasure() hook
anymore.
2020-01-12 17:55:46 +01:00
Ayush Goyal
c3c9061dbc
update for prettier changes
2020-01-12 02:06:05 +05:30
Ayush Goyal
bc72bc13e7
Add useCookie hook
2020-01-12 02:00:24 +05:30
Arnaud de Surirey
9b31c42ccb
fix: useUpdateEffect cleanup test returns false positive
2020-01-07 19:34:57 +01:00
Arnaud de Surirey
0ce421ced7
fix: useUpdateEffect returns optional cleanup function
2020-01-07 19:08:38 +01:00
streamich
733cf9bb07
test: 💍 fix useAsync test
2019-12-31 00:04:29 +01:00
Anton Dosov
e1f4252a1a
improve shallow compare. test for array wil multiple deps
2019-12-27 13:53:14 +03:00
Anton Dosov
c4911e6d70
add use-shallow-compare-effect and use-custom-compare-effect
2019-12-27 13:04:39 +03:00
Stefan Loeschcke
4f1d8c2cbd
fix(useSet): "has" method in useSet updated to reference latest set object
2019-12-10 09:48:00 +01:00
Vadim Dalecky
7cf955d6ed
Merge pull request #826 from stefanbugge/pr/816-fix-actions-not-stable-across-renders
...
fix(useMap): methods with side effects should be stable across renders.
2019-12-09 06:07:18 -08:00
Anton Zinovyev
125c7e96a1
feat: useScrollbarWidth hook; ( #825 )
...
* feat: useScrollbarWidth hook;
* chore: bump @xobotyi/scrollbar-width to 1.5.0 and add it to dependencies.
* fix: remove @xobotyi/scrollbar-width from dev-deps.
2019-12-09 15:47:44 +03:00
Stefan Loeschcke
020b4dbc6c
fix(useMap): methods with side effects should be stable across renders.
2019-12-09 11:11:14 +01:00
Vadim Dalecky
dbee45cc4c
test: add createBreakpoint tests
2019-12-08 02:36:21 -08:00
streamich
797e54c33b
test: 💍 add useUnmountPromise() tests
2019-12-08 00:46:40 +01:00
Stefan Loeschcke
044d2677aa
fix: "get" method in useMap updated to reference latest map object
2019-12-03 12:06:41 +01:00
Anton Zinovyev
0a66359143
feat: useStateHistory ( #709 )
...
* feat: add useStateHistory hook;
* fix: createBreakpoint lint fix (author skipped hooks);
2019-11-28 16:41:48 +03:00
hyunwoo.jo
29453eff70
change name
2019-11-26 18:02:41 +09:00
Jo Hyun Woo
db8776248c
Update createBreakpoin.test.ts
2019-11-26 17:10:21 +09:00
hyunwoo.jo
8028561e54
tslint
2019-11-25 22:12:15 +09:00
hyunwoo.jo
1da6e1808a
topo
2019-11-25 22:07:08 +09:00
hyunwoo.jo
3ea622078c
add: createbreakpoint test case
2019-11-25 22:03:27 +09:00
Anton Zinovyev
30abe2b22e
feat: add useFirstMountState & useRendersCount hooks ( #769 )
...
feat(useFirstMountState): hook to track if render is first;
feat(useRendersCount): hook to track renders count;
refactor(useUpdateEffect): now uses useFirstMountState hook;
refactor(usePreviousDistinct): now uses with useFirstMountState hook;
docs: update readme;
2019-11-23 15:14:35 +03:00
xobotyi
75284c62c8
fix( #792 ): make useUnmount invoke the current callback version instead of very first
2019-11-22 13:49:21 +03:00
Vadim Dalecky
58c4fb1f38
Merge pull request #788 from dubzzz/pr/fix-useasyncfn-not-discarding-previous-calls
...
fix: useAsyncFn does not discard old promises and might produce races
2019-11-20 17:13:26 -08:00
Nicolas DUBIEN
022fa0b7b7
fix: useAsyncFn does not discard old promises and might produce races
2019-11-21 00:48:10 +01:00
Nicolas DUBIEN
53164864b7
Fix typing issues in useAsyncFn
...
The callback passed to useAsyncFn is supposed to be callable without any parameters too :/
According to its type definition
2019-11-21 00:14:08 +01:00
Nicolas DUBIEN
6fd2822496
TSX specs were ignored from yarn test
2019-11-20 23:50:50 +01:00
Vadim Dalecky
0073acb538
Merge pull request #773 from streamich/fet-improve-useStateValidity
...
feat: Improve useStateValidator & useMultiStateValidator typings
2019-11-14 22:46:45 +01:00