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.
Scenario
OfflineFirstDeletePolicy.optimisticLocalit 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.localOnlythat deletes the instances from the local storages but not from the remote.Implementation
@tshedor I will leave a PR soon.