You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 11, 2023. It is now read-only.
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.
The documentation states that if a collection is dirty,
fetchwill read from localStorage. This is fine, but similar to how other places setoptions.dirtytotrueto indicate the operation happened locally, I feel the same should happen here. Then the pattern of testingoptions.dirtyin the success callback is consistent across all CRUD methods.It looks like this is a simple change in
dualsyncto addoptions.dirty = truebelow theif localsync('hasDirtyOrDestroyed', model, options)line.Comments?