Improve algorithm for detecting changes amongst child elements
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
px2react currently deletes all child elements and re-creates them if an update changes the number of child elements. This applies to both pxObject and pxComponent children. Needless to say, this is less than optimal and has the undesirable effect of causing child components to unmount and remount even though they remain otherwise unchanged.
We need to optimize this algorithm, possibly through the use of the 'id' attribute.
Contributor guide
Assessment
This issue has not been assessed yet.