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
Following PR #579
The installation data will attempt to resave if installation is removed on the server.
But the resaving is not allowed when the local datastore is enabled due to objectID is unchangeable in offline store.
But I think in this case should be allowed .
The setObjectId(id) seems only updating the in-memory map (call sequences: 1 -> 2 -> 3). Maybe just unregister old object from the map when setObjectId(null) and allowing ParseInstalltion type only.
The ParseInstallation offline store (database) will be updated after resaving (call sequences: 1 -> 2 -> 3). The code seems okay does not need to be changed.
Plz correct me if I'm wrong. 😄
The text was updated successfully, but these errors were encountered:
hermanliang
changed the title
Allowing ParseInstallation.setObjectId(null) when the local datastore is enabled
Re-save installation is allowed if LDS is enabled
Mar 23, 2017
Following PR #579
The installation data will attempt to resave if installation is removed on the server.
But the resaving is not allowed when the local datastore is enabled due to objectID is unchangeable in offline store.
But I think in this case should be allowed .
setObjectId(id)
seems only updating the in-memory map (call sequences: 1 -> 2 -> 3). Maybe just unregister old object from the map whensetObjectId(null)
and allowingParseInstalltion
type only.ParseInstallation
offline store (database) will be updated after resaving (call sequences: 1 -> 2 -> 3). The code seems okay does not need to be changed.Plz correct me if I'm wrong. 😄
The text was updated successfully, but these errors were encountered: