You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I really appreciate about this beautiful opensource.
I'm making something using yorkie.
That is what i want.
Maintaining client, change attached document.
For this, I need to generate client and document first.
And attach document of course.
If i wanna change document, I detach a document which I attached right before.
Lastly, I generate new document, and try to attach document.
But have a problem to do this.
What you expected to happen:
Maintaining client, change attached document.
How to reproduce it (as minimally and precisely as possible):
You can check a problem with this code.
importyorkiefrom'yorkie-js-sdk';asyncfunctionmain(){constclient=newyorkie.Client('https://api.yorkie.dev',{
apiKey,});awaitclient.activate();constdoc=newyorkie.Document('my-first-document');constdoc2=newyorkie.Document('my-first-document2');// first doc attachawaitclient.attach(doc);console.log('attach doc1');awaitclient.detach(doc);console.log('detach doc1');// second doc attachawaitclient.attach(doc2);console.log('attach doc2');awaitclient.detach(doc2);console.log('detach doc2');// again first doc attachawaitclient.attach(doc);console.log('attach doc1');}main();
Anything else we need to know?:
Environment:
Operating system:
Browser and version:
Yorkie version (use yorkie version):
Yorkie JS SDK version:
The text was updated successfully, but these errors were encountered:
What happened:
First of all, I really appreciate about this beautiful opensource.
I'm making something using yorkie.
That is what i want.
Maintaining
client
, change attacheddocument
.For this, I need to generate client and document first.
And attach document of course.
If i wanna change document, I detach a document which I attached right before.
Lastly, I generate new document, and try to attach document.
But have a problem to do this.
What you expected to happen:
Maintaining
client
, change attacheddocument
.How to reproduce it (as minimally and precisely as possible):
You can check a problem with this code.
Anything else we need to know?:
Environment:
yorkie version
):The text was updated successfully, but these errors were encountered: