[v2.15.0] Bug declaring the same component attribute twice (creates a mutableCell)
See original GitHub issueHi, I just updated from 2.14 to 2.15 and found a weird “bug”. By mistake I was rendering a component passing the same attr twice, like this: {{my-component componentVar=myStringVar componentVar=myStringVar}}
I know this makes no sense, but it was working correctly in 2.14
In 2.15 it doesn’t work. Suddenly componentVar is no longer the myStringVar but instead is a mutable cell object.
I created a twiddle with a reproduction, check the console also. https://ember-twiddle.com/c1f4d778120fe303436b0e5df029fcf2
Not saying this should be supported, but maybe throw an error? It can be difficult to debug the way it is.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:10
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Component is part of the declaration of 2 modules
Here is what I did to fix sharing a directive. create a new shared module. shared.module.ts import { NgModule, Directive,OnInit ...
Read more >Uncaught Error in $A.getCallback() while clicking twice a ...
When I click a button twice, I get the following error: ... And here I call a child component to display the field...
Read more >Proceedings - IEEE Xplore
The papers in this book comprise the proceedings of the meeting mentwned on the cover and title page. They reflect the authors' opinions...
Read more >The serapeum Reference Manual - Quickref
This is the serapeum Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Thu Dec 15 07:32:20 2022 GMT+0....
Read more >CHEMICAL MUTAGENS - Springer Link
2. Monitoring Progeny for Evidence of Germ-Cell Mutations. ... would be difficult to attribute the increase to a specific mutagenic agent.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@urbany Now that the latest versions of
ember-clicome withember-template-lintenabled by default It will prevent this issue. I think we can close this now.FYI - there is a new template linter rule against this issue: https://github.com/rwjblue/ember-template-lint/blob/master/docs/rule/no-duplicate-attributes.md