Is there a WASM API that one can use to replace Da...
# webassembly
e
Is there a WASM API that one can use to replace DataStore to persist key-value pairs?
b
I don’t know about multiplatform solutions, but inside browsers you can use Web Storage API (localStorage, sessionStorage) or IndexedDB API
If you are looking for multiplatform solution, it would be better to ask in #compose-web or #compose channels
t
You may also be interested in SQLite on wasm as a multiplat solution: https://developer.chrome.com/blog/sqlite-wasm-in-the-browser-backed-by-the-origin-private-file-system/
e
Thanks! The best option today seems to be https://github.com/JuulLabs/indexeddb
285 Views