2 ms·
First one can easily be solved using the local storage web API. https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API http
by speedgoose 5y ago
First one can easily be solved using the local storage web API.
https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage...
Second one could be a file served though HTTP. Like a JSON in a S3 bucket, or an index.html on a Linux/nginx VM. A file system is a database.
- nomel 5y ago> First one can easily be solved using the local storage web API. No, he wants global user state, not local browser state. Those are fundamentally different. With a local browser state, if I clear my browser website data, I get that again. If I use a different browser, I get it again. If I use a different device, I get it again. Local storage should always be considered ephemeral, because it's trivial and common for it to be deleted or be unavailable.