overleaf/services/web/frontend/js/shared/hooks
Alf Eaton 233ceb5356 Allow function as value for usePersistedState hook (#5131)
* Allow function value in usePersistedState
* Add tests for usePersistedState
* Use nullish coalescing to avoid calling getItem twice

GitOrigin-RevId: e0351addea904aefb7a402bff32689792b49fbbb
2021-09-24 08:04:21 +00:00
..
use-abort-controller.js Add useAbortController hook (#4234) 2021-06-24 02:06:45 +00:00
use-browser-window.js Merge pull request #4041 from overleaf/ae-use-ref-with-autofocus 2021-05-19 02:05:50 +00:00
use-debounce.js Merge pull request #4038 from overleaf/ae-move-use-debounce 2021-05-15 02:09:58 +00:00
use-dropdown.js Add useDropdown hook (#4228) 2021-06-24 02:06:49 +00:00
use-expand-collapse.js Merge pull request #3942 from overleaf/prettier-trailing-comma 2021-04-28 02:10:01 +00:00
use-is-mounted.js Add useIsMounted hook (#4039) 2021-05-19 02:06:31 +00:00
use-persisted-state.js Allow function as value for usePersistedState hook (#5131) 2021-09-24 08:04:21 +00:00
use-ref-with-auto-focus.js Merge pull request #4041 from overleaf/ae-use-ref-with-autofocus 2021-05-19 02:05:50 +00:00
use-resize-observer.js Merge pull request #3495 from overleaf/ae-prettier-2 2021-04-15 02:05:22 +00:00