-
-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove caching of auto-converted values #303
Conversation
Resolves #282 |
|| value instanceof ParseACL | ||
|| value instanceof ParseFile | ||
|| value instanceof ParseGeoPoint | ||
|| value instanceof ParseRelation; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than re-formatting, I've removed JSONObject
and JSONArray
By analyzing the blame information on this pull request, we identified @grantland and @wangmengyan95 to be potential reviewers. |
Lovely! |
7c4f2b3
to
c02509a
Compare
Split into two PRs. Combining and unnecessary back and forth conversions moved to #305 |
I think this is included in #305. LGTM anyway. |
We cache auto-convert JSONObject/JSONArray values from Map/List which causes confusion when the cached value gets returned instead of fresh values from the server. This PR removes cache and instead auto-converts JSONObject/JSONArray values from Map/List on every call to getJSONObject(key) and getJSONArray(key).
c02509a
to
34c5def
Compare
Remove caching of auto-converted values
@grantland updated the pull request. |
@grantland updated the pull request. |
We cache auto-convert
JSONObject
/JSONArray
values fromMap
/List
which causes confusion when the cached value gets returned instead of fresh values from the server. This PR removes this cache and instead auto-convertsJSONObject
/JSONArray
values fromMap
/List
on every call togetJSONObject(key)
andgetJSONArray(key)
.