Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .changeset/clear-numbers-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
"@lynx-js/react": patch
---

During hydration, replace update with insert + remove for same-type `<list-item />` with different `item-key` so the Lynx Engine detects changes.

```html
Hydrate List B into List A:

List A:
<list>
<list-item item-key="a">hello</list-item>
<list-item item-key="a">world</list-item>
</list>

List B:
<list>
<list-item item-key="a1">hello</list-item>
<list-item item-key="a2">world</list-item>
</list>
```

Previously this case was hydrated as an update; it is now emitted as insert + remove to ensure SDK detection.
Loading
Loading