overleaf/services/web/test/frontend/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.test.js Add useAbortController hook (#4234) 2021-06-24 02:06:45 +00:00
use-expand-collapse.test.js Switch to new JSX runtime (#4225) 2021-06-24 02:06:59 +00:00
use-persisted-state.test.js Allow function as value for usePersistedState hook (#5131) 2021-09-24 08:04:21 +00:00