Skip to content

how to reload/refresh ShareDB document?  #650

Description

@icoco

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 yet..

thank for help in advance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions