aurelia / aurelia/binding

Computed property is re-calculated even when nested computed property has not changed

Open
#732 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
110
Forks
98
PR merge metrics
No merged PRs in 30d

Description

I have computed property A which is dependent on X (`@computedFrom('X')`) and computed property B which is dependent on A (`@computedFrom('A')`).

My question is: if x changes, but the result of A does not should B be re-calculated?
It seems that it is. Is this by design? I was not expecting it.

Contributor guide

Open the contributing guide

Research direction

The issue names no file, test, or entry point. Start by reproducing the nested computed-property scenario described in the report, then trace how changes to X propagate through A and B; done means determining whether B recalculation is intended and identifying the required behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.