Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Set options.dirty to true if reading locally due to dirty collection #105

Description

@elad

The documentation states that if a collection is dirty, fetch will read from localStorage. This is fine, but similar to how other places set options.dirty to true to indicate the operation happened locally, I feel the same should happen here. Then the pattern of testing options.dirty in the success callback is consistent across all CRUD methods.

It looks like this is a simple change in dualsync to add options.dirty = true below the if localsync('hasDirtyOrDestroyed', model, options) line.

Comments?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions