Skip to content

Fix: check deepEqual to prevent unnecessary processModelChanges#41

Merged
ledancs merged 2 commits intomasterfrom
optimize-processModelChanges
Apr 2, 2026
Merged

Fix: check deepEqual to prevent unnecessary processModelChanges#41
ledancs merged 2 commits intomasterfrom
optimize-processModelChanges

Conversation

@ledancs
Copy link
Copy Markdown
Collaborator

@ledancs ledancs commented Apr 1, 2026

Changes are in updateChangedAnnotation.ts where we changed value !== previousValue to !deepEqual(value, previousValue).
Reason being that this prevents setPath from mutating processingContext.data when a computed value returns a structurally identical object/array with a new reference, which was causing spurious loop restarts in processModelChanges.

@ledancs ledancs requested a review from a team April 1, 2026 13:46
@ledancs ledancs added the patch label Apr 1, 2026
Copy link
Copy Markdown
Member

@xmahle xmahle left a comment

Choose a reason for hiding this comment

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

Sounds familiar issue 😅

@ledancs ledancs merged commit 3ea3a48 into master Apr 2, 2026
3 checks passed
smartlyio Bot pushed a commit that referenced this pull request Apr 2, 2026
- Fix: check deepEqual to prevent unnecessary processModelChanges (#41)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants