-
Notifications
You must be signed in to change notification settings - Fork 51
OfflineFirstDeletePolicy.localOnly #633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
OfflineFirstDeletePolicy.localOnly #633
Conversation
|
Wao @stefanorumi7 I was looking for this and thanks for the PR, hope it will be merged. |
|
Added also Problem scenario
Solution scenario
It is also more consistant as we are now providing |
tshedor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for opening a PR @stefanorumi7 . I'd prefer the settings.json to be in a different PR, but it's ok for this one.
packages/brick_offline_first/lib/src/offline_first_repository.dart
Outdated
Show resolved
Hide resolved
packages/brick_offline_first/lib/src/offline_first_repository.dart
Outdated
Show resolved
Hide resolved
|
Sorry about the multiple changes in same PR, will keep it in mind in the future. |
Adds a new delete policy that removes records from local storage only, without hitting the remote API. Useful when you've changed data remotely through another mechanism and want to clean up local cache so the next query will sync fresh data.