• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

solidjs / solid / 35011605117
79%
main: 79%

Build:
Build:
LAST BUILD BRANCH: fix-compiler-noscript-children
DEFAULT BRANCH: main
Ran 15 Sep 2026 07:12PM UTC
Jobs 1
Files 8
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Sep 2026 07:06PM UTC coverage: 71.619%. Remained the same
35011605117

push

github

web-flow
perf(signals,web): dynamic(source, { static }) and isStatic(o, key) (#3471)

`dynamic()` pays for a factory memo plus a per-instance memo so the source can
change. A great many call sites never change: a runtime `styled()` that always
renders "li", and — the case this exists for — a polymorphic component whose
`as` arrived as a literal. The compiler encodes `as="button"` at a call site as
a data property and `as={isLink() ? "a" : "button"}` as a getter, so which one
the caller wrote is readable at runtime.

`isStatic(o, key)` reads it: one descriptor lookup, no read of the value,
nothing tracked, looking through merge()/omit() views to the leaf that owns the
key (the truthful `getOwnPropertyDescriptor` from #3454). Data property, or
absent from an object whose key set is fixed, is static; a getter, a store key,
a memo-backed merge() source, or any key of an object whose keys can appear
later is not. A foreign `$PROXY`-marked object is opaque, so not static.

`dynamic(source, { static: true })` then says the source cannot change: called
once, untracked, at dynamic() time, and each instance renders the result with
no computation of its own. A tag goes to the compiled element path (create or
claim, spread, runHydrationEvents) and a component is called directly — no
owner on either side, which is what keeps hydration ids aligned. `is`/`xmlns`
still decide creation, read untracked as on the memo path. A static source may
not resolve to a promise (dev throws).

    function Polymorphic(props) {
      const Tag = dynamic(() => props.as, { static: isStatic(props, "as") });
      return <Tag {...omit(props, "as")} />;
    }

`as` stays public and reactive; the literal case stops paying for it.

Note the two paths produce DIFFERENT hydration ids — the memo path's element
sits one owner deeper (`_hk=10` vs `_hk=1` for the same tree). That is fine
because isStatic reads the same descriptors on both sides, but it is why the
classification must be per instance rath... (continued)

520 of 790 branches covered (65.82%)

Branch coverage included in aggregate %.

772 of 1014 relevant lines covered (76.13%)

14.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35011605117.1 15 Sep 2026 07:12PM UTC 8
71.62
GitHub Action Run
Source Files on build 35011605117
  • Tree
  • List 8
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #35011605117
  • d2a36f56 on github
  • Prev Build on next (#35009261199)
  • Next Build on next (#35015554602)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc