improve already-imported message further

This commit is contained in:
Kevin Jahns 2022-06-16 12:56:37 +02:00
parent a5e0448a92
commit 1bc9308566

View File

@ -114,7 +114,9 @@ if (glo[importIdentifier] === true) {
* This often leads to issues that are hard to debug. We often need to perform constructor checks, * This often leads to issues that are hard to debug. We often need to perform constructor checks,
* e.g. `struct instanceof GC`. If you imported different versions of Yjs, it is impossible for us to * e.g. `struct instanceof GC`. If you imported different versions of Yjs, it is impossible for us to
* do the constructor checks anymore - which might break the CRDT algorithm. * do the constructor checks anymore - which might break the CRDT algorithm.
*
* https://github.com/yjs/yjs/issues/438
*/ */
console.error('Yjs was already imported. This breaks constructor checks and will lead to isssues!') console.error('Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438')
} }
glo[importIdentifier] = true glo[importIdentifier] = true