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
Miscellaneous bindings changes from integration #60
Conversation
…ler. Also reformat this file and add some debug logging of RPCs.
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/rocicorp/replicache-sdk-js/d2dbj9qvf |
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.
LGTM
if (beginSyncResult.syncHead !== '00000000000000000000000000000000') { | ||
// replicache-client sends all zeros for null sync, | ||
// repc sends empty string. | ||
if (beginSyncResult.syncHead.replace(/0/g, '') !== '') { |
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.
this can probably go now
@@ -272,7 +274,7 @@ export default class Replicache implements ReadTransaction { | |||
} | |||
} | |||
|
|||
const {batchPushInfo} = syncInfo; | |||
const {batchPushInfo} = {...syncInfo}; |
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.
we are still not returning this (the syncinfo), you or @arv please file an issue if it is important to prioritize
checkStatus(syncInfo.clientViewInfo, 'client view'); | ||
const {clientViewInfo} = {...syncInfo}; | ||
if (clientViewInfo) { | ||
checkStatus(syncInfo.clientViewInfo, 'client view'); |
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.
same: not yet returned
No description provided.