Can you serialize a promise to localStorage?
How do you deal with network failure in the middle of the promise array?
How do you deal with network failure in the middle of the promise array?
Serializing a promise to localStorage; I get what you're trying to do, you want to have a worker pick up exactly where it left off when you left the app. This is where a service worker would help you. I suppose you could write some kind of durable mailbox a la Akka, only running in the browser.
Also showing the state of the queue (Sims-style, or just a number of pending changes) is easier when you control the queue yourself.