docs icon indicating copy to clipboard operation
docs copied to clipboard

Add JS doc for '.revert()'

Open NicksonYap opened this issue 6 years ago • 5 comments

NicksonYap avatar Sep 10 '18 14:09 NicksonYap

https://github.com/parse-community/Parse-SDK-JS/issues/323

NicksonYap avatar Sep 10 '18 14:09 NicksonYap

@NicksonYap thanks for the PR. Does it really fit into the performance section?

flovilmart avatar Sep 10 '18 14:09 flovilmart

@flovilmart you're welcome.

I'm not certain I think it doesn't but I suppose it can be considered as Client-side caching? Don't know what name to call this behaviour To be honest I don't know what's the use of replacing server-side data with client-side data Since calling find() or get() the object will trigger an API call anyways

NicksonYap avatar Sep 10 '18 15:09 NicksonYap

This isn’t caching. This feature is simply about discarding any changed keys from the client. The use of replacing server side data, is basically the core feature of parse, which is saving and updating objects

flovilmart avatar Sep 10 '18 16:09 flovilmart

I wonder whether this would make sense in the data section.

Also could we get code samples for the other client SDKs as well?

TomWFox avatar Mar 17 '19 09:03 TomWFox