Offline queue: post now, sync later

A guestbook whose posts survive losing the network. With offline: { queue: true, persist: true }, an entry posted while disconnected queues in IndexedDB, survives a full tab reload, and replays exactly once on reconnect - the queue synthesizes an idempotency key per mutation and the server's live.idempotent wrapper dedups the replay.

Try it right here: hit Go offline, sign the guestbook a few times (each post queues instead of sending), then Reconnect and watch the queue replay every entry exactly once. No DevTools needed.

Posting as Jazzy Nugget (13dc2342)

0 queued edits checkpoint: seq 0 (last post the queue uploaded)
offline The connection is down (disconnected). New posts queue locally and replay exactly once when it comes back.

Works offline: a post made with no connection queues locally and replays exactly once when the connection returns.

Entries (0, newest first, capped at 50)

  • No entries yet. Sign above - even offline.