Skip to content

reactivity guard: adds && chaining for injected variables#647

Merged
michielvandergeest merged 1 commit intodevfrom
fix/reactivity-guard-safe-access
Mar 23, 2026
Merged

reactivity guard: adds && chaining for injected variables#647
michielvandergeest merged 1 commit intodevfrom
fix/reactivity-guard-safe-access

Conversation

@uguraslan
Copy link
Copy Markdown
Contributor

Computed properties with null/undefined guards were crashing at runtime because the injected guard expression (e.g. this.foo.bar;) runs before the user's own null checks and throws error when intermediate values are absent.

Variables are now injected as a && chain: this.foo && this.foo.bar;.

@github-actions
Copy link
Copy Markdown

Test Results: ✅ PASSED

Run at: 2026-03-23T13:59:39.627Z

Summary:
passed: 1148 failed: 0 of 1148 tests

Copy link
Copy Markdown
Collaborator

@michielvandergeest michielvandergeest left a comment

Choose a reason for hiding this comment

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

LGTM!

@michielvandergeest michielvandergeest merged commit 14795a9 into dev Mar 23, 2026
3 checks passed
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