Skip to content

Conversation

felixtro
Copy link
Member

Add a localStorage helper wrapper, load saved favorites on startup, and write updates back on change. Corrupted or invalid stored JSON falls back to no favorites instead of crashing; only country codes are stored, never the fetched country data.

Closes #33

Add a localStorage helper wrapper, load saved favorites on startup, and write updates back on change. Corrupted or invalid stored JSON falls back to no favorites instead of crashing; only country codes are stored, never the fetched country data.

Closes #33
@felixtro felixtro requested a review from a team as a code owner September 15, 2026 12:32
Copy link
Member

@edving edving left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@felixtro felixtro merged commit 6177005 into dev Sep 15, 2026
@felixtro felixtro deleted the 33-persist-favorites-in-localstorage branch September 15, 2026 12:34
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants