question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v2.15.0] Bug declaring the same component attribute twice (creates a mutableCell)

See original GitHub issue

Hi, 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:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
esbanarangocommented, Sep 21, 2018

@urbany Now that the latest versions of ember-cli come with ember-template-lint enabled by default It will prevent this issue. I think we can close this now.

0reactions
kyleshaycommented, Dec 12, 2017
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found