Hey PWA nostr devs. Do you store notes in browser’s localStorage/indexedDB? If yes/no why?
I’m building a client in Preact and deciding on what to store persistently.
Hey PWA nostr devs. Do you store notes in browser’s localStorage/indexedDB? If yes/no why?
I’m building a client in Preact and deciding on what to store persistently.
Iris stores in IndexedDB. I'm currently storing just some latest messages, contacts and metadata, but could store more.
What about the rest? Do you download all notes every time the app is open? I’m torn between doing just that (like pretty much every other client) and subscribing and resubscribing just for chunks of data as needed. However relays don’t seem to like this approach as they sometimes reply slower with subsequent resubscribes.