31 Commits

Author SHA1 Message Date
Arnaud de Surirey
fdd1b23fd7 fix(useLocalStorage): reinitialize on key change 2021-04-14 15:27:11 +02:00
xobotyi
b6993a6f95
feat(prettier): make prettier a part of eslint.
Also reduce max line width to 100. And remove `lint:types` step for
commit sequence, it bothers when committing incomplete (wip) changes.
2021-02-01 18:58:55 +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
ddaza
db07ab65bf updated formating and fixed errors 2020-07-02 14:56:15 -05:00
ddaza
3ce080cdf3 updated prettier and eslint 2020-07-02 14:19:03 -05:00
streamich
c75a0a6ef3 chore: 🤖 catch up with master 2020-02-15 11:20:01 +01:00
Ayush Goyal
67d65833d9 chore: disable eslint for affected files 2020-02-04 07:12:19 +05:30
streamich
68fb835ea6 fix: 🐛 better serialization handling in useLocalStorage hook 2020-02-04 00:38:56 +01:00
streamich
be69035caf feat: 🎸 catch up with v14 2020-02-03 23:35:28 +01:00
Tyler Swavely
becdfff194 add serializer options back to useLocalStorage 2020-02-02 21:21:34 -08:00
Tyler Swavely
812d31afff Merge remote-tracking branch 'upstream/master' into fix-useLocalStorage 2020-02-01 16:42:25 -08:00
streamich
973a11fdb5 chore: 🤖 catch up with master 2020-01-17 09:24:06 +01:00
Ayush Goyal
d619c39a21 fix: check for null 2020-01-16 08:17:56 +05:30
Ayush Goyal
5316510bab feat: add serializer/deserializer option to useLocalStorage 2020-01-15 23:14:17 +05:30
suyingtao
1620e019ff fix(useLocalStorage): using undefined for empty value instead of null 2019-12-16 12:59:03 +08:00
suyingtao
587de16ef5 feat(useLocalStorage): add remove feature. (#229) 2019-12-13 18:45:39 +08:00
Tyler Swavely
c8396443b4 initialState switched to useEffectOnce 2019-11-25 21:37:35 -08:00
Tyler Swavely
b702692d23 enforces rules of hooks 2019-11-20 00:20:09 -08:00
Tyler Swavely
ead2242875 reintroduce types 2019-11-19 23:04:34 -08:00
Tyler Swavely
126c509139 reject nullish keys 2019-11-19 22:46:35 -08:00
Tyler Swavely
da4bfddb26 finish tests and hook 2019-11-19 22:24:59 -08:00
Charles-Axel Dein
5f5376c64e
Fix useLocalStorage types for functional updates
Fixes #438
2019-07-04 09:51:25 +02:00
James Jackson
9a0316ea90
Update useLocalStorage.ts 2019-06-25 23:12:41 -04:00
Ankith Konda
f02b92d423 Add TSLint + Prettier and fix lint issues 2019-04-12 23:18:11 +10:00
Ward Oosterlijnck
94b4ea9d3e Consistent reuse of isClient util 2019-03-31 16:42:29 +11:00
Timothy Vernon
2ba0c4b92d
Fix typo in comments 2019-03-01 10:10:13 +01:00
streamich
cdc5ec596d refactor: 💡 use import hooks from React proper 2018-12-16 11:02:52 +01:00
Gabriel Basilio Brito
37de6d26f2 chore: remove unused import in useLocalStorage.ts 2018-10-31 22:36:51 +01:00
streamich
73e05c7d59 docs: ✏️ add useLocalStorage docs 2018-10-30 17:56:04 +01:00
streamich
d2117225e4 feat: 🎸 implement useLocalStorage without events 2018-10-30 17:44:42 +01:00
streamich
2541716ad7 feat: 🎸 do work on useLocaStorage
There is some "Illegal invocation" that I cannot immediately solve, so
postponing this hook for now.
2018-10-27 23:15:04 +02:00