ITADN

how to reload/refresh ShareDB document?

#650Openicoco 创建于 2024-05-08
I
icococommented
as topic, a document was created as follow code : ``` const shareDBDoc = this.shareDBConnection.get('documents', key ); ... shareDBDoc.create(initialDocument, json1Presence.type.uri); ``` since the document does not reload file from disk realtime, have to reload/refresh document manually, I use ' shareDBDoc.destory() ', it does not work, report error bellow: ``` ShareDBError: Document already exists ``` my questions, how to reload or refresh the shareDBDoc ? can not find relative guide from the online [document](https://share.github.io/sharedb/api/doc) yet.. thank for help in advance
7 条评论