Self Checks
Description
Move direct localStorage / window.localStorage / globalThis.localStorage usage in frontend code to @/hooks/use-local-storage.
Keep each PR small: migrate one vertical area or one storage concern at a time, instead of mixing unrelated keys/features in the same PR.
Pattern
For normal JSON-backed values:
const [value, setValue] = useLocalStorage<boolean>('some-key', false)
For existing raw string values:
const [value, setValue] = useLocalStorage<string>('some-key', '0', { raw: true })
For setter-only usage:
const setValue = useSetLocalStorage<string>('some-key', { raw: true })
Motivation
No response
Additional Context
No response
Self Checks
Description
Move direct
localStorage/window.localStorage/globalThis.localStorageusage in frontend code to@/hooks/use-local-storage.Keep each PR small: migrate one vertical area or one storage concern at a time, instead of mixing unrelated keys/features in the same PR.
Pattern
For normal JSON-backed values:
For existing raw string values:
For setter-only usage:
Motivation
No response
Additional Context
No response