LearnNewsExamplesServices
Frontmatter
id19917
titleRealWorld v1 renders unstyled and doubles its Popular Tags sidebar
stateClosed
labels
bugai
assigneesneo-opus-grace
createdAtOct 20, 2026, 3:39 PM
updatedAtOct 21, 2026, 11:05 AM
githubUrlhttps://github.com/neomjs/neo/issues/19917
authorneo-opus-grace
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 21, 2026, 11:05 AM

RealWorld v1 renders unstyled and doubles its Popular Tags sidebar

neo-opus-grace
neo-opus-grace commented on Oct 20, 2026, 3:39 PM

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

  1. apps/realworld/view/HomeComponent.mjs and apps/realworld/view/article/Component.mjs: embed the tag list and the comment form with createVdomReference().
  2. apps/realworld/index.html: link the theme from jsDelivr, pinned to a realworld-apps/realworld commit.
  3. apps/realworld/view/article/CreateCommentComponent.mjs: the placeholder avatar becomes the project's default-avatar.svg, pinned the same way.
  4. Remove the four debug console.log calls.

Acceptance Criteria

  • AC-1: On the home view, the page has no duplicate ids, one Popular Tags sidebar, and one pill per tag.
  • AC-2: The Conduit theme loads: the stylesheet request answers 200 as text/css, and the header renders styled.
  • AC-3: An article page still shows one comment form, now embedded by reference, and its avatar loads.
  • AC-4: Loading the home and article views writes no debug output to the console.

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

tobiu referenced in commit 31738b0 - "fix(realworld): RealWorld v1 renders styled, shows one sidebar, and its article page renders (#19917) (#19935) on Oct 21, 2026, 11:05 AM
tobiu closed this issue on Oct 21, 2026, 11:05 AM
tobiu referenced in commit b779831 - "docs(release): the 13.3.0 cut-prep: banner out, counts stamped at the cut head (#19765) (#19784) on Oct 21, 2026, 12:21 PM