docs/plans/4140-use-editor-selection-yjs.md
#4140Yjs: useEditorSelection() does not seem to work with YjsPluginhttps://github.com/udecode/plate/issues/4140useEditorSelection() updates under YjsPlugin the same way it does without Yjs, including after init and later selection changesYjsPlugin plus the Plate selection storepackages/yjs/src/react/YjsPlugin.tsxpackages/yjs/src/lib/BaseYjsPlugin.tspackages/yjs/src/lib/withTYjs.tspackages/core/src/react/hooks/useSlateProps.tspackages/core/src/react/stores/plate/createPlateStore.tslearnings-researcher pointed at docs/solutions/patterns/critical-patterns.md, but that file does not exist in this checkout.@slate-yjs/core swallows Slate onChange options.lint:fix.task, planning-with-files, learnings-researcher, tdd, and changeset.versionSelection, and Yjs does not obviously advance that path today.PlateContentnull instead of the expected behavioruseEditorSelection().editor.children updates, but the pasted issue comment's component shape still does not force a rerender. That is not enough evidence to claim #4140 itself still reproduces on current main.