You might be right… localStorage is a shitcoin! Solve: Redux middleware that persists straight to nostr… Demo coming next Friday 🧡🔥
IndexedDB
Is not distributed and therefore not resilient enough. I just built the naive version of the redux thing, and its pretty awesome. Whenever relevant data changes it get encrypted and sent to nostr. On startup the app gets the latest state and rehydrates it's store. Right now it only does that on startup, but you could imagine syncing multiple devices with this too (however you would need to handle state merges in this case).