Menu

#LocalStorage

11 posts

Feed·
9 of 11 posts
window.localStorage can be null, which is how our signup flow handed people an error screen
🖼️
0Read More

window.localStorage can be null, which is how our signup flow handed people an error screen

DEV Community: react·Daniel Pertu·4 days ago
#14Lxkt4K
#devtoreact#devto#dev#theme#null

An Android WebView with DOM storage disabled gives you null, not an empty store, so a theme read threw inside a React effect and the first page after signup became an error boundary.

15s
0Read More

modelmap

Hacker News·2 months ago
#28RPr0TM
#modelmap#theme#localstorage#photo#article

// theme before first paint: saved choice, else dark (function () { var t = localStorage.getItem('mm-theme') || 'dark'; if (t !== 'system') document.documentElement.dataset.theme = t; })();

15s
I replaced my personal tracking spreadsheets with mini-apps I built myself
🖼️
0Read More

I replaced my personal tracking spreadsheets with mini-apps I built myself

DEV Community·Ruben·6 months ago
#UXnef8Lm
#opensource#nextjs#webdev#drive#google

I had spreadsheets for everything. Money I lent to friends. Domain renewals. Bookmarks I'd never...

15s
Building Offline-First Web Apps with localStorage: A Practical Guide
📰
0Read More

Building Offline-First Web Apps with localStorage: A Practical Guide

DEV Community·Ashish Kumar·6 months ago
#F5T8ZrVk

localStorage is the simplest persistence layer the browser offers, and most developers either underuse it or abuse it. A practical look at when localStorage is the right tool, the gotchas that catch teams in production, and when to upgrade to IndexedDB.

15s