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

Skip to content

Conversation

@zeroedin
Copy link
Contributor

@zeroedin zeroedin commented Oct 9, 2025

Fixes Array mutation problem in hydration-support

Addresses #5114

@zeroedin zeroedin requested a review from kevinpschaaf as a code owner October 9, 2025 18:27
@changeset-bot
Copy link

changeset-bot bot commented Oct 9, 2025

🦋 Changeset detected

Latest commit: 7023fcc

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-client 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

@google-cla
Copy link

google-cla bot commented Oct 9, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Lookwe69
Copy link

Lookwe69 commented Oct 9, 2025

Are you sure this.attributes is an Iterable ? I thought it was a ArrayLike.
Is it performance related to not using for...of ?

Copy link
Collaborator

@justinfagnani justinfagnani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

We really need a test to show that this is a valid fix and make sure we don't regress.

@justinfagnani
Copy link
Collaborator

Are you sure this.attributes is an Iterable ? I thought it was a ArrayLike. Is it performance related to not using for...of ?

NamedNodeMap is iterable, but it's also live (unlike an array iterator) so we can't use it directly here.

@zeroedin zeroedin changed the title fix: loop mutation in hydrate support [labs/ssr-client] fix loop mutation in hydrate support Oct 14, 2025
@justinfagnani justinfagnani merged commit ed877c8 into lit:main Dec 10, 2025
7 checks passed
@justinfagnani
Copy link
Collaborator

Thanks @zeroedin!! Sorry for the long review time!

@lit-robot lit-robot mentioned this pull request Dec 18, 2025
bennypowers added a commit to RedHat-UX/red-hat-design-system that referenced this pull request Dec 26, 2025
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.

4 participants