- Install svelte-persisted-store for localStorage persistence - Create preferences store with lastEntryType and showCompleted - Sticky type preference across sessions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
7 lines
193 B
TypeScript
7 lines
193 B
TypeScript
import { persisted } from 'svelte-persisted-store';
|
|
|
|
export const preferences = persisted('taskplaner-preferences', {
|
|
lastEntryType: 'thought' as 'task' | 'thought',
|
|
showCompleted: false
|
|
});
|