Skip to content

Prevent duplicate loading of yjs when workspace and viewer open text #3825

@max-nextcloud

Description

@max-nextcloud

Describe the bug
When opening both the Readme.md in the workspace and a file in the viewer the following error shows up in the console:

Yjs was already imported. This breaks constructor checks and will lead to issues! - yjs/yjs#438

To Reproduce
Steps to reproduce the behavior:
1.Create a folder description.
2. Create a test file
3. Open console
4. See error message there

Expected behavior
We should only import Yjs once and avoid that error message.

Screenshots
grafik

Metadata

Metadata

Type

No type

Projects

Status

☑️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions