MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / runtimeChildrenChanged

Function runtimeChildrenChanged

packages/core/src/runtime/commit/equality.ts:571–580  ·  view source on GitHub ↗
(
  prevChildren: readonly RuntimeInstance[],
  nextChildren: readonly RuntimeInstance[],
)

Source from the content-addressed store, hash-verified

569}
570
571export 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
582export function hasDirtyChild(children: readonly RuntimeInstance[]): boolean {
583 for (const child of children) {

Callers 1

commitContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected