Skip to content

OfflineFirstDeletePolicy.localOnly #632

@stefanorumi7

Description

@stefanorumi7

Scenario

  • After executing some remote function I am needing to delete from the local cache and SQLite DB some entities.
  • When I do this with OfflineFirstDeletePolicy.optimisticLocal it does the local job, but it also sends the request to the remote DB to delete those entities (I want to avoid this).

Solution

Implementation of OfflineFirstDeletePolicy.localOnly that deletes the instances from the local storages but not from the remote.

Implementation

@tshedor I will leave a PR soon.

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