Anton Zinovyev
4e07c7ebc8
Merge pull request #1574 from lmichelin/patch-1
...
docs: Fix useAsyncFn example to avoid error
2021-04-06 11:35:17 +03:00
Juan Lulkin
245e11681c
Adds docs for the new API
2021-02-15 21:07:33 +01:00
xobotyi
94e2a807c6
chore: clarification about useMountedState hook.
2021-02-10 23:02:59 +03:00
xobotyi
23037f207d
feat: refactor the useNetwork hook.
...
Improved hook performance, now works with safari.
BREAKING CHANGE: `useNetwork` hook renamed to `useNetworkState`.
2021-01-31 03:14:20 +03: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
Nicolas Girault
6e3a73a1e6
Fix typo
2020-12-31 20:30:46 +01:00
Louis-Marie Michelin
45559ffe78
docs: Fix useAsyncFn example to avoid error
2020-10-15 23:36:31 +02:00
Filipe Marins
77d34867fb
Rename useEffectOnce to useLifecycles on documentation example ( #1427 )
2020-08-07 15:05:32 +10:00
tkwant
d714b12e8b
feat: add useMouseWheel hook
2020-06-05 22:50:34 +02:00
streamich
e33cf9f87b
chore: 🤖 catch up with master
2020-05-18 16:03:20 +02:00
Vadim Dalecky
4aa573dfeb
Merge branch 'master' into feature/correct-spelling
2020-05-16 15:58:12 +02:00
streamich
e1dbd39f18
chore: 🤖 catch up with master
2020-05-16 14:59:21 +02:00
streamich
1e74bdcf48
docs: ✏️ add useScratch to docs
2020-05-16 14:29:24 +02:00
Clément Paris
d6fe267615
feat: add useLatest hook
2020-05-10 18:09:30 +02:00
whincwu
44a6cde00e
feat: add useHash hook
2020-04-08 09:21:06 +03:00
xobotyi
baa2f7511e
feat(useRafLoop): reworked the hook, now it do not re-render parent component.
...
BREAKING CHANGE: changed return array, now it returns only functions in next order: [stop, start, isActive].
Parent component is not re-rendered on loop start/stop.
2020-04-01 10:43:31 +03:00
xobotyi
1ef1272d6d
feat(useRafLoop): implement #1090
2020-04-01 08:49:05 +03:00
Mike Rogers
e4eec7bf63
correcting spelling mistakes
2020-03-05 11:36:43 +00:00
Octave Raimbault
477614f9ef
feat(useSet): add toggle a method ( #968 )
...
Co-authored-by: Ward <wardoosterlijnck@gmail.com>
2020-03-03 14:00:40 +11:00
Justin Conner
d4489d0644
Renames Animation.md file to Animations.md
2020-02-29 04:33:54 +03:00
Mikael Finstad
f049d9151e
Fix typos and doc error
2020-02-20 17:53:00 +08:00
streamich
3ca5251c2e
chore: 🤖 catch up with master
2020-02-17 22:40:41 +01:00
LittleboyHarry
4464832875
Update useCounter.md
...
Fixed error parameter name.
2020-02-16 10:31:02 +08:00
Vadim Dalecky
a2c26a2b68
Merge pull request #910 from ayush987goyal/pr/use-methods
...
feat: add useMethods state hook
2020-02-15 15:25:05 +01:00
Ayush Goyal
7554b9a61e
feat: add useMethods state hook
2020-02-15 19:24:48 +05:30
streamich
f60ed427a3
chore: 🤖 catch up with master
2020-02-15 14:50:44 +01:00
Vadim Dalecky
290c87313a
Merge pull request #750 from mvargeson/fix-lifecycle-hooks-broken-href
...
docs: rename docs/Lifecycle.md to match README.md
2020-02-15 14:48:00 +01:00
Vadim Dalecky
5ea486edf1
Merge pull request #867 from bebbi/feat/before-unload-callback
...
feat(useBeforeUnload): allow passing a dirty function (#842 )
2020-02-15 14:10:30 +01:00
streamich
6ddc6332f8
chore: 🤖 catch up with master
2020-02-04 01:36:30 +01:00
streamich
7c93cd1236
chore: 🤖 catch up with master
2020-02-04 01:27:02 +01:00
Vadim Dalecky
fda7199b7d
feat: add createGlobalState hook generator
2020-02-03 16:20:07 -08:00
Vadim Dalecky
54ac91b28d
feat: keep previous state in useAsyncFn
...
BREAKING CHANGE: useAsyncFn now keeps hold of old result/error when called multiple times
2020-02-03 16:12:50 -08:00
streamich
2e91e5396e
chore: 🤖 catch up with master
2020-02-03 23:09:33 +01:00
Josmar Dias
2005535518
docs: useCustomCompareEffect should import itself ( #909 )
2020-01-30 14:51:18 +03:00
carlos
062e60663d
Resolve #934 : useAsyncFn: keeping the previous state when start running the async function
2020-01-30 18:03:54 +08:00
Guillaume L
f06895d9d5
[FIX] typo in useStateList.md ( #923 )
...
`nexct` --> `next`
2020-01-27 17:46:37 +03:00
Kuss
57b904118e
fix: Fail testing and update doc
2020-01-24 19:04:39 +08: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
Mateusz Leonowicz
7645f7249d
feat: useMap: allow resetting with provided value other then initial
2020-01-17 15:03:35 +00:00
streamich
973a11fdb5
chore: 🤖 catch up with master
2020-01-17 09:24:06 +01:00
Ayush Goyal
65f3644205
feat: add useError hook
2020-01-16 21:13:35 +05:30
Ayush Goyal
5316510bab
feat: add serializer/deserializer option to useLocalStorage
2020-01-15 23:14:17 +05:30
MrHuangJser
08d13933e3
Update docs/createGlobalState.md
...
fix spell issue
Co-Authored-By: Vadim Dalecky <streamich@users.noreply.github.com>
2020-01-14 08:57:59 +08:00
Brendan Daoud
6d61c1d95a
Merge branch 'master' into pr/useStateContext
2020-01-13 18:08:09 +01:00
Brendan
bc74530f35
Add create reducer context
2020-01-13 14:01:21 +01:00
Brendan
e34ee0e66c
Allow initial value override
2020-01-13 13:32:24 +01:00
Brendan
7285f7dc7a
Add createStateContext
2020-01-13 13:09:29 +01:00
Ayush Goyal
3e806fdc03
Update ts ref in doc
2020-01-13 07:26:33 +05:30