Comment by ikurei
4 days ago
Thanks a lot for your answer!
How about the database? You're just using IndexedDB for the persistence? How was the experience of working with it?
4 days ago
Thanks a lot for your answer!
How about the database? You're just using IndexedDB for the persistence? How was the experience of working with it?
Similar I'd love to hear anything you can share about how you are persisting the data. I've been working on the web version of the recommendation todo app that I'm building and so far, since I know basically nothing about web development, I'm storing everything in cookies *ducks*.
The IndexedDB API [1] is fairly easy to work with. I personally use idb [2] as a wrapper, but that's optional. The hardest part is getting it neatly integrated with whatever you're using to manage state. I use a centralized Redux-like store to push events to, which then get automatically persisted to Indexed DB. Hope this helps!
[1] https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_A...
[2] https://github.com/jakearchibald/idb