Skip to content

[ZEPPELIN-6641] Fix stale rationale in the reportError comment - #5424

Merged
voidmatcha merged 1 commit into
apache:masterfrom
tbonelee:ZEPPELIN-6641
Aug 15, 2026
Merged

[ZEPPELIN-6641] Fix stale rationale in the reportError comment#5424
voidmatcha merged 1 commit into
apache:masterfrom
tbonelee:ZEPPELIN-6641

Conversation

@tbonelee

Copy link
Copy Markdown
Contributor

What is this PR for?

The reportError comment in ReactMountDirective claimed that a markForCheck() issued from outside the Angular zone has nothing to flush it. Since Angular 18 that is not accurate: hybrid scheduling notifies ChangeDetectionSchedulerImpl, and a tick is scheduled for exactly that case (measured at 1 to 4 ms on a running dev server, see the ZEPPELIN-6565 comment).

This states a rationale that does not depend on internal scheduling behavior. Comment only, no behavior change.

What type of PR is it?

Improvement

What is the Jira issue?

How should this be tested?

Comment-only change, nothing to test.

Questions:

  • Does the license files need to update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

The comment claimed that a markForCheck() issued from outside the Angular
zone has nothing to flush it. Since Angular 18 that is not accurate:
hybrid scheduling notifies ChangeDetectionSchedulerImpl, and a tick is
scheduled for exactly that case.

State a rationale that does not depend on internal scheduling behavior.
Comment only, no behavior change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Assisted-By: Claude <noreply@anthropic.com>
@tbonelee
tbonelee requested a review from voidmatcha August 15, 2026 09:02
@tbonelee

Copy link
Copy Markdown
Contributor Author

@voidmatcha mind taking a look? Follow-up to ZEPPELIN-6565, comment only.

@voidmatcha voidmatcha left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM 👍

The new rationale does not lean on scheduling internals.

@voidmatcha
voidmatcha merged commit cd700db into apache:master Aug 15, 2026
17 of 18 checks passed
@voidmatcha

Copy link
Copy Markdown
Member

Merged into master (cd700db).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants