Skip to content

Conversation

andrewimm
Copy link
Contributor

ParseObject.prototype.newInstance() creates a new, memory-unique instance of a Parse Object, as though it had been fetched again from the server. This is only really relevant in Unique Instance mode.

@andrewimm
Copy link
Contributor Author

@TylerBrock would love your input here

@TylerBrock
Copy link
Contributor

Looks good, would duplicateState work for objects with read only attributes? I assume setting attrs on serverData directly bypasses that.

@andrewimm
Copy link
Contributor Author

All validation is handled within the ParseObject instance itself, but let me throw together some test cases for ParseUser and ParseSession

@TylerBrock
Copy link
Contributor

Thanks Andrew. Are you thinking this slated for 1.7.2 or 1.8.0?

@andrewimm
Copy link
Contributor Author

1.8.0, since it represents a new API. I'm currently adding one last change, and then probably pushing out an RC. I like the RC approach, I think I'll adopt it for all future minor version increments.

andrewimm added a commit that referenced this pull request Feb 18, 2016
New API for creating a new instance of an object
@andrewimm andrewimm merged commit 338a16c into release-1.8.0 Feb 18, 2016
@dplewis dplewis deleted the object_duplicate branch March 21, 2019 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants