solidjs

solid-meta

Write meta tags to the document head

by solidjs

TypeScript

TypeScript96.2%
JavaScript3.8%

Commit activity

Last 12 weeks · 5 commits

Full graph →

Community health

3 of 6 standards met

Community profile →
62
✓README○License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Active · Last activity 1w ago
See all on GitHub →
xrtis

Hi :wave: Same issue as #71, but for props instead of children: during SSR, serializes nullish props as the literal string , because passes non-strings through untouched. Solid's own skips nullish values. This bites TanStack Router, which passes to every head tag, so every tag in `nonce="undefined"` when no nonce is configured. Thanks

xrtis · 3d ago
ethan-huo

`[SERVER_WRITE]@solidjs/metasolid-js@solidjs/web@solidjs/signalspackage.json{ "type": "module" }SERVER_WRITEsrc/index.tsv1.0.0-next.2HeaddirtyownedWrite: trueregistersetDirty(undefined)onCleanupsolid-jswarnServerWrite("signal")packages/solid/src/server/signals.tssolid-js@2.0.0-rc.21ownedWriteuseHeadtagsdirtyif (!isServer) setDirty(undefined)dist/index.js` with the repro above (rc.21): the warning disappears and the HTML is byte-identical.

ethan-huo · 1w ago
PsychoLlama

Minimal Repro https://stackblitz.com/edit/vitejs-vite-ahztdktt?file=src%2Fapp.tsx Environment version (also repro'd against @ 391138eefe2d0c48b8c4f2bfe7d7bfd74d6922a0) version Description My app has a meta tag like this: It's wired to a light/dark appearance toggle. 1. Toggle once: it works. 2. Toggle twice: it works. 3. Toggle thrice+, the meta tag permanently removes itself. Why it happens Changing a property triggers / lifecycle hooks in . Source Tags are identified by , which includes reactive props. Source runs after change, computes the wrong key, and tries to delete the current tag. Source Since can't find itself in the cache, it leaks old values and the bug doesn't manifest until a new key collides with an old key. For example, the 3rd click of an appearance toggle. Workaround Mutating refs in effects avoids the bug. This is effectively what I'm doing today:

PsychoLlama · 2w ago
ryansolid

_Requested by Ryan · project thread_ Why The Release run for #78 (run) failed: changesets logged and got . So 0.29.8 never reached npm ( is still 0.29.4). What Same setup as solid-router / vite-plugin-solid: (plus / for the changesets PR) Node 24.x for the release job (npm >= 11.5.1 is required for OIDC publishing) ; is no longer passed is already , which matches the repo, so provenance will validate. Before merging A trusted publisher must be added for on npmjs.com (Settings → Trusted publishing → GitHub Actions): org , repo , workflow , environment empty. Merging this then re-runs Release, which publishes 0.29.8. _Generated by Claude Code_

ryansolid · 1w ago
ryansolid

_Requested by Ryan · project thread_ The 1.x line of peers on , which satisfies once stable ships. This caps it to so 1.x users don't get a silent install against Solid 2. Solid 2 support lives on the tag (). : → patch changeset () still passes (the lockfile doesn't record root peers) Release note: npm is still 0.29.4 (May 2024), but is already at 0.29.7, so 0.29.5–0.29.7 never published. The Release workflow has no run history left, so the cause isn't visible here; the secret is the likely suspect. Merging this goes through the changesets Version PR and then publishes 0.29.8 only if that publish step works. _Generated by Claude Code_

ryansolid · 1w ago
odama626

Summary A page rendering `headTaguseContext(HeadGroupContext)getContextNoOwnerErrorcheck.mjs@solidjs/routerHydration key missCannot read properties of null (reading 'nextSibling')1107…1007…`), i.e. the client consumes one extra hydration position where the meta component sits and every sibling after it inherits the offset. I haven't been able to reduce that second symptom to a small case, so I'm reporting it as context rather than as part of the repro. If they're unrelated I'm happy to split it out. Versions @solidjs/meta 1.0.0-next.2, solid-js 2.0.0-rc.7, @solidjs/web 2.0.0-rc.7, @solidjs/router 2.0.0-next.21, @solidjs/vite-plugin 3.0.0-next.40, nitro 3.0.260903-beta, vite 8.2.2, node 22.22

odama626 · 2mo ago
Structured data for AI agents

Repository: solidjs/solid-meta. Description: Write meta tags to the document head Stars: 159, Forks: 24. Primary language: TypeScript. Languages: TypeScript (96.2%), JavaScript (3.8%). Latest release: v0.29.8 (1w ago). Open PRs: 6, open issues: 29. Last activity: 1w ago. Community health: 62%. Top contributors: ryansolid, nksaraf, davedbase, github-actions[bot], ArnabXD, birkskyum, GoodbyeNJN, JakkuSakura, dennev, indeyets and others.