( prevChildren: readonly RuntimeInstance[], nextChildren: readonly RuntimeInstance[], )
| 569 | } |
| 570 | |
| 571 | export function runtimeChildrenChanged( |
| 572 | prevChildren: readonly RuntimeInstance[], |
| 573 | nextChildren: readonly RuntimeInstance[], |
| 574 | ): boolean { |
| 575 | if (prevChildren.length !== nextChildren.length) return true; |
| 576 | for (let i = 0; i < prevChildren.length; i++) { |
| 577 | if (prevChildren[i] !== nextChildren[i]) return true; |
| 578 | } |
| 579 | return false; |
| 580 | } |
| 581 | |
| 582 | export function hasDirtyChild(children: readonly RuntimeInstance[]): boolean { |
| 583 | for (const child of children) { |