aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/use-local-storage.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(hooks): rewrite useLocalStorage hookArmand Philippot2023-11-111-33/+0
| | | | | | | * return a tuple instead of an object * add a validator function as parameter (if the stored value is manually changed, it is not safe to cast its type) * add tests
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-4/+2
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-1/+1
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* chore: handle settings changeArmand Philippot2022-05-181-0/+35