You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SSR: nullish Title children serialize as literal "undefined" #73
During SSR, a nullish child passed to a closing meta element is serialized as literal text. In particular, <Title>{undefined}</Title> produces <title>undefined</title> instead of an empty title.
This is the current, framework-independent core of solidjs/solid-start#1881. The reproduction does not use SolidStart, routing, prerendering, or asynchronous data.
renderTags passes the nullish value through escape and then interpolates the result into a template literal. escape(undefined) returns undefined, which template interpolation converts to the string "undefined".
Normalizing the result of flattenChildren with ?? "" before choosing the escaped or unescaped branch avoids stringifying both undefined and null, while preserving valid falsy values such as 0 and false.
Scope
This issue is specifically about serialization of a nullish value. If a title depends on asynchronous route data, the render must still wait for that data (for example with deferStream). The correct output for data that is still unresolved when the shell flushes is an empty title, not the literal word undefined.
Closing as part of the Solid 2.0 cleanup. @solidjs/meta 2.0.0 is a rewrite on top of Solid 2.0's built-in head registry (useHead in @solidjs/web), and the 0.x line that this was reported against isn't getting further changes. If you can still reproduce this on 2.0.0, please open a new issue with a repro.
Activity
ryansolid commentedon Nov 17, 2026
Closing as part of the Solid 2.0 cleanup.
@solidjs/meta2.0.0 is a rewrite on top of Solid 2.0's built-in head registry (useHeadin@solidjs/web), and the 0.x line that this was reported against isn't getting further changes. If you can still reproduce this on 2.0.0, please open a new issue with a repro.Generated by Claude Code
ryansolid commentedon Nov 17, 2026
Reopened, sorry about the noise. This is a Solid 1 line (0.29.x) bug with an open fix PR, so it stays open for a 0.29.x release.
Generated by Claude Code