diff --git a/src/components/block-editor-contents/use-yjs.js b/src/components/block-editor-contents/use-yjs.js index 1c26b3d6a..7957d0516 100644 --- a/src/components/block-editor-contents/use-yjs.js +++ b/src/components/block-editor-contents/use-yjs.js @@ -46,6 +46,7 @@ function initYDoc( { initialBlocks, onRemoteDataChange, channelId, transport } ) debug( `connected (channelId: ${ channelId })` ); if ( isFirstInChannel ) { + debug( 'first in channel' ); doc.startSharing( { title: '', initialBlocks } ); } else { doc.connect(); diff --git a/src/stories/collab/Collaboration.stories.tsx b/src/stories/collab/Collaboration.stories.tsx index 4bf80163e..99f19a017 100644 --- a/src/stories/collab/Collaboration.stories.tsx +++ b/src/stories/collab/Collaboration.stories.tsx @@ -17,6 +17,18 @@ const Template: Story< Props > = ( args ) => { <>

Open this page in another window to test real time collaborative editing.

+

+ This local demo depends on shared Local Storage (instead of network) to pass messages across tabs. It + will not work: +

+ ); };