Having a Computed Property (CP) which depends on a oneWay CP doesn't work
See original GitHub issueHere is a twiddle which demonstrates the issue https://ember-twiddle.com/1934386ad97e960cac37b36cf0068847?openFiles=templates.my-route.hbs%2C&route=%2Fmy-route
The controller has three CPs,
customRoutingType: oneWay('model.customRoutingType'),
isFixedRouted: equal('customRoutingType', 'fixed').volatile().readOnly(),
isDynamicRouted: equal('customRoutingType', 'dynamic').volatile().readOnly()
customRoutingType can take the values fixed & dynamic based on which radio button you click when you visit the my-route route in the twiddle
The route template displays the state of the three values.
customRoutingType updates as you toggle the radio buttons, but the other dependent CPs do not.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
 Top Results From Across the Web
Top Results From Across the Web
Computed properties dependent on async relationships do ...
A computed property dependent upon an async relationship does not recompute when the relationship fulfills. In the reproduction, post hasMany (async) ...
Read more >Help refactoring a no-side-effects warning in a CP - Ember.JS
The warning is generated because you're using a computed property (which is supposed to have one-way data flow, e.g. reads the values of...
Read more >Ember js @each one level deep but I have a two deep level ...
This can be achieved with a chain of computed properties, where each property has only one @each level. Say, you have Foo, Bar...
Read more >Vue: When a computed property can be the wrong tool
sortedList depends on isOver100 though - so it also has to be marked dirty. And likewise, it won't yet be re-evaluated because that...
Read more >Fastest and safest way to copy massive data from one external ...
Fastest and safest way to copy massive data from one external drive to another · 1. Starting with MacOS 10.13. · The answer...
Read more > Top Related Medium Post
Top Related Medium Post
No results found
 Top Related StackOverflow Question
Top Related StackOverflow Question
No results found
 Troubleshoot Live Code
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free Top Related Reddit Thread
Top Related Reddit Thread
No results found
 Top Related Hackernoon Post
Top Related Hackernoon Post
No results found
 Top Related Tweet
Top Related Tweet
No results found
 Top Related Dev.to Post
Top Related Dev.to Post
No results found
 Top Related Hashnode Post
Top Related Hashnode Post
No results found

Related SO Question
It also is correctly explained in the API specification:
I guess this can be safely withdrawn then 😃 Thanks everyone for the explanations