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

solidjs / solid / 13463524537
85%

Build:
DEFAULT BRANCH: main
Ran 21 Feb 2025 07:08PM UTC
Jobs 1
Files 19
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

21 Feb 2025 07:06PM UTC coverage: 85.957% (-0.01%) from 85.97%
13463524537

push

github

web-flow
Show double evaluation (#2411)

* Added tests for Show counting condition evaluations

The `<Show>` component evaluates its `when` condition more often than necessary, in particular it is immediately evaluated twice if the condition is true, children is specified as a function, and keyed is not specified.

#2406

* Fixes <Show> evaluating the condition twice

Adds another memo directly on `when` in `<Show>`.

#2406

* Made <Match> conditions only evaluate when needed

This removes a bug where the `when` condition of a `<Match>` was evaluated twice immediately after creation, when the condition was true, children was a function and keyed was not specified. It also removes any unnecessary conditions evaluations by creating a memo on every `when` in a `Switch`.

For example, if a `<Switch>` has two `<Match>`es with `when={a()}` and `when={b()}` respectively, then:
- `b()` is never called if `a()` is truthy (which was true also before this change),
- `a()` is never called when `b()` changes (which is new).

#2406

* changeset

917 of 1135 branches covered (80.79%)

Branch coverage included in aggregate %.

55 of 57 new or added lines in 1 file covered. (96.49%)

2321 of 2632 relevant lines covered (88.18%)

67.29 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
90.24
-0.71% packages/solid/src/render/flow.ts
Jobs
ID Job ID Ran Files Coverage
1 13463524537.1 21 Feb 2025 07:08PM UTC 19
85.96
GitHub Action Run
Source Files on build 13463524537
  • Tree
  • List 19
  • Changed 4
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #13463524537
  • 0eab77dc on github
  • Prev Build on main (#13463504972)
  • Next Build on main (#13463735497)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc