Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@augustjk
Copy link
Member

Fixes #3823

The runtime jsx mode were never affected by this as they always get children passed in via the props object.

@augustjk augustjk requested a review from justinfagnani as a code owner April 29, 2023 00:08
@changeset-bot
Copy link

changeset-bot bot commented Apr 29, 2023

🦋 Changeset detected

Latest commit: a022dae

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@lit-labs/ssr-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Apr 29, 2023

📊 Tachometer Benchmark Results

Summary

nop-update

  • lit-html-kitchen-sink: unsure 🔍 -5% - +1% (-1.09ms - +0.30ms)
    this-change vs tip-of-tree

render

  • lit-element-list: 101.95ms - 109.20ms
  • lit-html-kitchen-sink: unsure 🔍 -5% - +3% (-2.23ms - +1.31ms)
    this-change vs tip-of-tree
  • lit-html-repeat: unsure 🔍 -8% - +7% (-1.13ms - +0.91ms)
    this-change vs tip-of-tree
  • lit-html-template-heavy: unsure 🔍 -1% - +4% (-0.53ms - +3.05ms)
    this-change vs tip-of-tree
  • reactive-element-list: unsure 🔍 -5% - +2% (-3.72ms - +1.32ms)
    this-change vs tip-of-tree

update

  • lit-element-list: 1044.90ms - 1069.22ms
  • lit-html-kitchen-sink: unsure 🔍 -6% - +2% (-6.33ms - +1.94ms)
    this-change vs tip-of-tree
  • lit-html-repeat: unsure 🔍 -5% - +2% (-15.40ms - +5.70ms)
    this-change vs tip-of-tree
  • lit-html-template-heavy: unsure 🔍 -0% - +6% (-0.25ms - +8.15ms)
    this-change vs tip-of-tree
  • reactive-element-list: unsure 🔍 -2% - +1% (-27.08ms - +8.71ms)
    this-change vs tip-of-tree

update-reflect

  • lit-element-list: 1013.84ms - 1039.61ms
  • reactive-element-list: unsure 🔍 -3% - +0% (-34.32ms - +3.01ms)
    this-change vs tip-of-tree

Results

lit-element-list

render

VersionAvg timevs
101.95ms - 109.20ms-

update

VersionAvg timevs
1044.90ms - 1069.22ms-

update-reflect

VersionAvg timevs
1013.84ms - 1039.61ms-
lit-html-kitchen-sink

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
41.14ms - 43.76ms-unsure 🔍
-5% - +3%
-2.23ms - +1.31ms
unsure 🔍
-4% - +5%
-1.61ms - +2.30ms
tip-of-tree
tip-of-tree
41.72ms - 44.10msunsure 🔍
-3% - +5%
-1.31ms - +2.23ms
-unsure 🔍
-3% - +6%
-1.07ms - +2.68ms
previous-release
previous-release
40.65ms - 43.56msunsure 🔍
-5% - +4%
-2.30ms - +1.61ms
unsure 🔍
-6% - +2%
-2.68ms - +1.07ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
99.34ms - 103.96ms-unsure 🔍
-6% - +2%
-6.33ms - +1.94ms
unsure 🔍
-5% - +2%
-5.58ms - +1.88ms
tip-of-tree
tip-of-tree
100.41ms - 107.28msunsure 🔍
-2% - +6%
-1.94ms - +6.33ms
-unsure 🔍
-4% - +5%
-4.17ms - +4.86ms
previous-release
previous-release
100.57ms - 106.43msunsure 🔍
-2% - +6%
-1.88ms - +5.58ms
unsure 🔍
-5% - +4%
-4.86ms - +4.17ms
-

nop-update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
18.97ms - 19.75ms-unsure 🔍
-5% - +1%
-1.09ms - +0.30ms
unsure 🔍
-5% - +2%
-1.09ms - +0.31ms
tip-of-tree
tip-of-tree
19.18ms - 20.33msunsure 🔍
-2% - +6%
-0.30ms - +1.09ms
-unsure 🔍
-4% - +4%
-0.82ms - +0.83ms
previous-release
previous-release
19.16ms - 20.34msunsure 🔍
-2% - +6%
-0.31ms - +1.09ms
unsure 🔍
-4% - +4%
-0.83ms - +0.82ms
-
lit-html-repeat

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
12.75ms - 14.43ms-unsure 🔍
-8% - +7%
-1.13ms - +0.91ms
unsure 🔍
-9% - +5%
-1.20ms - +0.68ms
tip-of-tree
tip-of-tree
13.12ms - 14.28msunsure 🔍
-7% - +8%
-0.91ms - +1.13ms
-unsure 🔍
-6% - +4%
-0.87ms - +0.57ms
previous-release
previous-release
13.43ms - 14.27msunsure 🔍
-5% - +9%
-0.68ms - +1.20ms
unsure 🔍
-4% - +6%
-0.57ms - +0.87ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
322.42ms - 338.07ms-unsure 🔍
-5% - +2%
-15.40ms - +5.70ms
unsure 🔍
-4% - +2%
-14.75ms - +6.25ms
tip-of-tree
tip-of-tree
328.02ms - 342.17msunsure 🔍
-2% - +5%
-5.70ms - +15.40ms
-unsure 🔍
-3% - +3%
-9.36ms - +10.56ms
previous-release
previous-release
327.49ms - 341.51msunsure 🔍
-2% - +4%
-6.25ms - +14.75ms
unsure 🔍
-3% - +3%
-10.56ms - +9.36ms
-
lit-html-template-heavy

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
71.61ms - 74.36ms-unsure 🔍
-1% - +4%
-0.53ms - +3.05ms
unsure 🔍
-1% - +5%
-0.38ms - +3.29ms
tip-of-tree
tip-of-tree
70.58ms - 72.87msunsure 🔍
-4% - +1%
-3.05ms - +0.53ms
-unsure 🔍
-2% - +3%
-1.48ms - +1.87ms
previous-release
previous-release
70.31ms - 72.75msunsure 🔍
-4% - +0%
-3.29ms - +0.38ms
unsure 🔍
-3% - +2%
-1.87ms - +1.48ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
148.42ms - 154.91ms-unsure 🔍
-0% - +6%
-0.25ms - +8.15ms
unsure 🔍
-0% - +6%
-0.28ms - +8.86ms
tip-of-tree
tip-of-tree
145.06ms - 150.38msunsure 🔍
-5% - +0%
-8.15ms - +0.25ms
-unsure 🔍
-3% - +3%
-3.83ms - +4.52ms
previous-release
previous-release
144.16ms - 150.59msunsure 🔍
-6% - +0%
-8.86ms - +0.28ms
unsure 🔍
-3% - +3%
-4.52ms - +3.83ms
-
reactive-element-list

render

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
70.91ms - 74.62ms-unsure 🔍
-5% - +2%
-3.72ms - +1.32ms
unsure 🔍
-3% - +3%
-2.19ms - +2.44ms
tip-of-tree
tip-of-tree
72.26ms - 75.67msunsure 🔍
-2% - +5%
-1.32ms - +3.72ms
-unsure 🔍
-1% - +5%
-0.87ms - +3.52ms
previous-release
previous-release
71.26ms - 74.02msunsure 🔍
-3% - +3%
-2.44ms - +2.19ms
unsure 🔍
-5% - +1%
-3.52ms - +0.87ms
-

update

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
1070.13ms - 1093.80ms-unsure 🔍
-2% - +1%
-27.08ms - +8.71ms
unsure 🔍
-2% - +1%
-18.93ms - +13.69ms
tip-of-tree
tip-of-tree
1077.72ms - 1104.58msunsure 🔍
-1% - +3%
-8.71ms - +27.08ms
-unsure 🔍
-1% - +2%
-10.93ms - +24.07ms
previous-release
previous-release
1073.36ms - 1095.81msunsure 🔍
-1% - +2%
-13.69ms - +18.93ms
unsure 🔍
-2% - +1%
-24.07ms - +10.93ms
-

update-reflect

VersionAvg timevs this-change
vs tip-of-tree
tip-of-tree
vs previous-release
previous-release
this-change
1078.01ms - 1103.35ms-unsure 🔍
-3% - +0%
-34.32ms - +3.01ms
unsure 🔍
-1% - +2%
-15.92ms - +17.31ms
tip-of-tree
tip-of-tree
1092.62ms - 1120.05msunsure 🔍
-0% - +3%
-3.01ms - +34.32ms
-unsure 🔍
-0% - +3%
-1.07ms - +33.77ms
previous-release
previous-release
1079.24ms - 1100.73msunsure 🔍
-2% - +1%
-17.31ms - +15.92ms
unsure 🔍
-3% - +0%
-33.77ms - +1.07ms
-

tachometer-reporter-action v2 for Benchmarks

@augustjk augustjk requested a review from kevinpschaaf as a code owner May 3, 2023 02:07
@augustjk augustjk requested a review from justinfagnani May 3, 2023 02:10
@augustjk augustjk merged commit 8deca6e into main May 3, 2023
@augustjk augustjk deleted the ssr-react-children branch May 3, 2023 17:18
@raoufswe
Copy link
Contributor

raoufswe commented May 9, 2023

thank youu @augustjk for working on this!

I see you already have released a new version of ssr-react to 1.1.2, but the next wrapper is still pointing to an older version of it. do you reckon we need to update the next wrapper as well or i am doing something wrong?

I explicitly sat my ssr-react version to 1.1.2 via

  "resolutions": {
    "@lit-labs/ssr-react": "0.1.2"
  }

and the error seems to be resolved 🥳

@augustjk
Copy link
Member Author

augustjk commented May 9, 2023

@raoufswe because of the semver range a fresh install would normally install the latest version of @lit-labs/ssr-react even though @lit-labs/nextjs doesn't specify it. existing projects would have to do a manual update for it. for npm, doing npm update @lit-labs/ssr-react works even if it is not listed directly in package.json. i don't use yarn but i'm hoping yarn upgrade works similarly? there's also the approach of deleting the lockfile and re-installing to grab the latest semver acceptable version of all your dependencies.

@lit-labs/ssr-react being a nested dependency, there might be a risk of outdated version checks not picking up the new version. our default release approach is to only bump version when a dependency gets a minor version bump. if we do one for every patch, it could cause a lot of new versions. perhaps that's not such a bad thing but it's how we have it for now.

@raoufswe
Copy link
Contributor

raoufswe commented May 9, 2023

I deleted my lockfile and re-run yarn and it picked up the latest version indeed. thank youu <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[labs/ssr-react] Handling of children in props

3 participants