The filters are now remembered in localStorage
Every filter, the days and title included, is stored under job_search.filters when it changes and read back when the page loads. A stored field that isn't valid (missing, from an older version or edited by hand) falls back to its default, keeping the rest. Clear filters still goes back to the defaults.
This commit is contained in:
1 parent
746fa0a9c1
commit
0819fb442b
5 files changed
+112
-5
No files matched your search
@@ -23,4 +23,5 @@ export function writeStored(key: string, value: string): void {
|
||||
export const STORAGE_KEYS = {
|
||||
theme: 'job_search.theme',
|
||||
filtersOpen: 'job_search.filtersOpen',
|
||||
filters: 'job_search.filters',
|
||||
} as const;
|
||||
Reference in new issue
Block a user