overleaf/services
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
..
chat Merge pull request #5161 from overleaf/jpa-drop-errorhandler 2021-09-21 08:03:17 +00:00
clsi Merge pull request #4944 from overleaf/bg-use-file-line-errors 2021-09-22 08:03:25 +00:00
contacts Merge pull request #4891 from overleaf/ho-web-mongo-4-2 2021-09-15 08:03:54 +00:00
docstore Merge pull request #4891 from overleaf/ho-web-mongo-4-2 2021-09-15 08:03:54 +00:00
document-updater Merge pull request #5143 from overleaf/bg-upgrade-docupdater-dependencies 2021-09-21 08:02:58 +00:00
filestore Merge pull request #4885 from overleaf/bg-filestore-delete-project 2021-08-27 08:03:32 +00:00
git-bridge Set global logging limit to INFO 2021-07-27 09:55:04 +01:00
notifications Merge pull request #5161 from overleaf/jpa-drop-errorhandler 2021-09-21 08:03:17 +00:00
real-time Merge pull request #5109 from overleaf/bg-fix-handshake-exception 2021-09-16 08:03:08 +00:00
spelling Merge pull request #4891 from overleaf/ho-web-mongo-4-2 2021-09-15 08:03:54 +00:00
track-changes Merge pull request #4891 from overleaf/ho-web-mongo-4-2 2021-09-15 08:03:54 +00:00
web Allow function as value for usePersistedState hook (#5131) 2021-09-24 08:04:21 +00:00