-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
LiveQuery handle unset operation #714
Conversation
Thé op should be sent to the client as undefined is not serialized. |
Codecov Report
@@ Coverage Diff @@
## master #714 +/- ##
==========================================
+ Coverage 88.58% 88.59% +<.01%
==========================================
Files 53 53
Lines 4538 4541 +3
Branches 1053 1054 +1
==========================================
+ Hits 4020 4023 +3
Misses 518 518
Continue to review full report at Codecov.
|
Thats a better solution. Instead of setting undefined like in this PR. Send undefined to the client |
@flovilmart I found it easier since I have the original object to compare to the new object and set the unset fields to undefined. No change needed on the server side A few questions I have about live query. On update / event subscription since its the latest version of an object should it override server data? Should it update LDS if enabled? |
@@ -264,7 +264,7 @@ describe('LiveQueryClient', () => { | |||
expect(isChecked).toBe(true); | |||
}); | |||
|
|||
it('can handle WebSocket response unset pointer', async () => { | |||
fit('can handle WebSocket response unset field', async () => { |
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.
oops
@flovilmart Thanks! Did you see my last comment? |
It should likely update yes, |
Addresses parse-community/parse-server#4998