Is there an equivalent of https://github.com/akiroz/re-frame-storage for IndexedDB? LocalStorage's 5MB quota has fallen short for my project :(
No library that I'm aware of, but even just whether you can use it via interop or not depends on the exact use case.
It's just for basic client-side persistence that exceeds the local storage quota, basically to have a replica of re-frame-storage for reading/writing from indexeddb. Seems like someone already created a nice cljs wrapper for it https://github.com/brianium/indexed.db, so IIUC to keep everything re-frame idiomatic we would first need to adapt storage-atom to support indexeddb's state and then create a wrapper re-frame effect/cofx which reads and writes to it, like what's mentioned in this thread https://clojureverse.org/t/re-frame-and-indexeddb/7360 ?
If the only instance where you read the data is at the app's start, then yeah, kinda. You don't need an atom for any intermediate storage, so no need to bring storage-atom into this. Just read the data at the app's start and write it whenever you want to persist it (maybe with a global interceptor), that's it.
But if you need to read from it during the app's run time, you'll have to use polling because IndexedDB does not have any notification mechanism.
Yeah, I only need the data at startup to populate re-frame's db and then the occasional write. Will give the global interceptor a try, thank you
@c7607e73-ff69-4682-b0 the todomvc example does this for local store.so that might provide a map of the territory