fix: handle corrupted localStorage data in useMixedTasks#1377
fix: handle corrupted localStorage data in useMixedTasks#1377Shan7Usmani wants to merge 1 commit into
Conversation
|
Hey @Shan7Usmani! Saw your work on GSSoC 2026. We are building TermUI, a TypeScript terminal UI framework with React-style hooks and JSX, rendered entirely in the terminal. We have 67 unassigned GSSoC issues open. 19 are marked Karanjot, TermUI maintainer |
Hi @Karanjot786, Thank you for reaching out and for the invitation. I'm currently contributing to GSSoC 2026 and would be interested in exploring TermUI as well. I'll take a look at the open issues and see where I can contribute. I appreciate and accept your invitation to this opportunity! |
Fixes #1289
Description
This PR fixes a crash caused by corrupted
activeRoutineTasksdata in localStorage.Problem
The hook directly used
JSON.parse()when initializing and syncing routine tasks. If the stored value contained malformed JSON, an exception would be thrown, causing the application to crash.Changes Made
JSON.parse()calls.activeRoutineTasksentries from localStorage.Impact
This prevents application crashes caused by invalid localStorage data and improves the overall stability and user experience.