Context
Found by a headless sweep of every example and app on the dev server (dev at 9771bebcb8, 2026-10-20). The 13.3 notes say both RealWorld apps work again (#19700, #19883, #19892). RealWorld2 does. RealWorld v1 loads articles and tags, but it renders unstyled and doubles its Popular Tags sidebar.
Observed in headless Chrome on apps/realworld/index.html:
- The page shows raw, unstyled HTML. Its only theme,
//demo.productionready.io/main.css, now answers 404 with an HTML page, and Chrome blocks it (ERR_BLOCKED_BY_ORB).
- The sidebar is in the DOM twice under the same parent: 2
.sidebar nodes, 30 tag pills for 15 tags, 19 duplicate element ids.
- The comment form's placeholder avatar,
https://static.productionready.io/images/smiley-cyrus.jpg, answers 404.
- Four leftover debug
console.log calls write to the console (HomeComponent.mjs:317, CommentComponent.mjs:159, ProfileComponent.mjs:223 and :259).
The Problem
HomeComponent#onConstructed pushes the tag list's own vdom into its tree (apps/realworld/view/HomeComponent.mjs:137). The parent then renders the child's nodes as its own, and the child renders them again when its tags arrive, so the DOM gets two copies. article/Component.mjs:183 embeds the comment form the same way. An article page shows one form today (checked), because nothing there updates the form beside its parent; the embed is the same defect waiting for that update.
The Architectural Reality
- A container embeds a child component through
createVdomReference() (src/container/Base.mjs:523, :724). A reference lets the child own its nodes; the parent's render keeps the child's place in the tree without expanding it.
- Red→green check: serving
HomeComponent.mjs with .push(me.tagList.createVdomReference()) instead of .push(me.tagList.vdom) gives 0 duplicate ids, 1 sidebar and 15 tag pills, with the 4 article previews unchanged (dev: 19 duplicates, 2 sidebars, 30 pills).
- The RealWorld project moved its shared theme into its repository:
realworld-apps/realworld, assets/theme/styles.css, with assets/media/default-avatar.svg beside it. raw.githubusercontent serves files as text/plain, which a browser refuses as a stylesheet; jsDelivr serves the same file as text/css (28,850 bytes, checked at commit ebbcdeb8d5).
The Fix
apps/realworld/view/HomeComponent.mjs and apps/realworld/view/article/Component.mjs: embed the tag list and the comment form with createVdomReference().
apps/realworld/index.html: link the theme from jsDelivr, pinned to a realworld-apps/realworld commit.
apps/realworld/view/article/CreateCommentComponent.mjs: the placeholder avatar becomes the project's default-avatar.svg, pinned the same way.
- Remove the four debug
console.log calls.
Acceptance Criteria
Out of Scope
- RealWorld2, which the same sweep found clean.
- Showing the signed-in user's own avatar in the comment form.
Related
#19700 · #19883 · #19892 (the earlier RealWorld fixes in 13.3) · #19784 (the 13.3 notes credit these apps)
Live latest-open sweep: latest 20 open issues at 2026-10-20T13:38Z, plus gh search issues --owner neomjs realworld --state open; no equivalent
A2A claim sweep: last 30 messages, all read-states; no claim on RealWorld
MC sweep: "realworld v1 conduit app renders unstyled, Popular Tags sidebar shown twice, demo.productionready.io main.css", 6 results, session-boot noise only, no prior decision
Own-assignment sweep: 16 open; none touches apps/realworld
Retrieval Hint: "realworld v1 unstyled duplicate popular tags sidebar createVdomReference"
Origin Session ID: fe0fefcd-99fe-4eb2-b4c4-b8a4fbe2d92c
Context
Found by a headless sweep of every example and app on the dev server (
devat9771bebcb8, 2026-10-20). The 13.3 notes say both RealWorld apps work again (#19700, #19883, #19892). RealWorld2 does. RealWorld v1 loads articles and tags, but it renders unstyled and doubles its Popular Tags sidebar.Observed in headless Chrome on
apps/realworld/index.html://demo.productionready.io/main.css, now answers 404 with an HTML page, and Chrome blocks it (ERR_BLOCKED_BY_ORB)..sidebarnodes, 30 tag pills for 15 tags, 19 duplicate element ids.https://static.productionready.io/images/smiley-cyrus.jpg, answers 404.console.logcalls write to the console (HomeComponent.mjs:317,CommentComponent.mjs:159,ProfileComponent.mjs:223and:259).The Problem
HomeComponent#onConstructedpushes the tag list's ownvdominto its tree (apps/realworld/view/HomeComponent.mjs:137). The parent then renders the child's nodes as its own, and the child renders them again when its tags arrive, so the DOM gets two copies.article/Component.mjs:183embeds the comment form the same way. An article page shows one form today (checked), because nothing there updates the form beside its parent; the embed is the same defect waiting for that update.The Architectural Reality
createVdomReference()(src/container/Base.mjs:523,:724). A reference lets the child own its nodes; the parent's render keeps the child's place in the tree without expanding it.HomeComponent.mjswith.push(me.tagList.createVdomReference())instead of.push(me.tagList.vdom)gives 0 duplicate ids, 1 sidebar and 15 tag pills, with the 4 article previews unchanged (dev: 19 duplicates, 2 sidebars, 30 pills).realworld-apps/realworld,assets/theme/styles.css, withassets/media/default-avatar.svgbeside it. raw.githubusercontent serves files astext/plain, which a browser refuses as a stylesheet; jsDelivr serves the same file astext/css(28,850 bytes, checked at commitebbcdeb8d5).The Fix
apps/realworld/view/HomeComponent.mjsandapps/realworld/view/article/Component.mjs: embed the tag list and the comment form withcreateVdomReference().apps/realworld/index.html: link the theme from jsDelivr, pinned to arealworld-apps/realworldcommit.apps/realworld/view/article/CreateCommentComponent.mjs: the placeholder avatar becomes the project'sdefault-avatar.svg, pinned the same way.console.logcalls.Acceptance Criteria
text/css, and the header renders styled.Out of Scope
Related
#19700 · #19883 · #19892 (the earlier RealWorld fixes in 13.3) · #19784 (the 13.3 notes credit these apps)
Live latest-open sweep: latest 20 open issues at 2026-10-20T13:38Z, plus
gh search issues --owner neomjs realworld --state open; no equivalent A2A claim sweep: last 30 messages, all read-states; no claim on RealWorld MC sweep: "realworld v1 conduit app renders unstyled, Popular Tags sidebar shown twice, demo.productionready.io main.css", 6 results, session-boot noise only, no prior decision Own-assignment sweep: 16 open; none touchesapps/realworldRetrieval Hint: "realworld v1 unstyled duplicate popular tags sidebar createVdomReference" Origin Session ID: fe0fefcd-99fe-4eb2-b4c4-b8a4fbe2d92c