State Management · Senior · Question 75 of 75
Where should an unsaved long form draft live so it survives a reload or crash?
- ✓Correct answer: In local persistent storage (
localStoragefor small drafts, IndexedDB for large ones), saved with a debounce and cleared on submit - 2In a global Redux store only
- 3In the URL
Explanation
In-memory stores vanish on reload. Debouncing avoids writing on every keystroke; versioning the stored shape prevents restoring incompatible drafts.