Skip to content

Allow users to provide an external ydoc to YDocument #141

@trungleduc

Description

@trungleduc

Problem

The constructor of YDocument is empty since the internal YJS doc is created by the class. It would be useful if users can provide an existing ydoc to the YDocument constructor.

Proposed Solution

Update the YDocument constructor signature to allow overriding the ydoc property.

Additional context

  • This would help ypywidgets project to create frontend widgets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions