Skip to content

Attachments orphan issue on web (powersync_core) #357

@galacticgibbon

Description

@galacticgibbon

I have a scenario on web where a failure occurs - specifically with web using LocalStorage.inMemory()

Reproduce:

  1. Add an item to the queue
  2. Fail the upload (for example offline)
  3. Refresh the page.

The data will be gone from the local storage, no more attempts are made to upload, but the attachment still exists (and any relations added in watchAttachments).

What I expect

I think there needs to be some way to detect these failures reliably so that you can delete any associated entries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions