Thiago Barreto
Thiago Barreto
local and remote options are meant to use only when you want local OR remote. To use both (dualStorage default behavior), simply remove local: true and remote: true configurations.
The use case was exactly as @lucian1900 explained, local-only data. So, the logic would be: `options.local` should mark things as dirty if `model.remote` option is true.
I created a sync this on my fork: https://github.com/thiagobc/Backbone.dualStorage/tree/sync_local_and_remote . I started with the idea to create a _dirty and _destroyed localstorage items. - all dualsync requests will go first...