fix: Add debounced Undo/Redo system to avoid character-by-character history
- Add debounced state updates for title and content (500ms delay) - Immediate UI updates with delayed history saving - Prevent one-letter-per-undo issue - Add cleanup for debounce timers on unmount
This commit is contained in:
15
keep-notes/app/archive/page.tsx
Normal file
15
keep-notes/app/archive/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { getArchivedNotes } from '@/app/actions/notes'
|
||||
import { NoteGrid } from '@/components/note-grid'
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
|
||||
export default async function ArchivePage() {
|
||||
const notes = await getArchivedNotes()
|
||||
|
||||
return (
|
||||
<main className="container mx-auto px-4 py-8 max-w-7xl">
|
||||
<h1 className="text-3xl font-bold mb-8">Archive</h1>
|
||||
<NoteGrid notes={notes} />
|
||||
</main>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user