Rendering <button> in each loop breaks application
See original GitHub issueIn ember 3.3.0 following template breaks application:
{{#each buttons as |button|}}
<button>{{button}}</button>
{{/each}}
buttons is a simple array. In console I can see Uncaught Error: unreachable. This error does not happen with other tags (i.e. works fine) and does not happen on ember 3.2.2
Repository with demonstration: https://github.com/GendelfLugansk/ember-rendering-bug
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:43 (24 by maintainers)
Top Results From Across the Web
How to break out of an async for loop on button press in React
I have the following component. I want to break out of the loop when the button is clicked. How do ...
Read more >JavaScript For Loop Click Event ← Issues & Solutions Explained
When you attach multiple click events inside a for loop in JavaScript, It always gives the last index regardless of what button is...
Read more >How to Implement a Component Loop in React | Pluralsight
Consider a simple use case where you have to render a list of items on the DOM. 1import React from 'react'; 2import './App.css';...
Read more >Slow rendering - Android Developers
The systrace is broken up by processes and threads. ... a user clicking a button), but remember that each allocation comes with a...
Read more >How to solve the React useEffect Hook's infinite loop patterns
This is possible via the useEffect function; Manipulating the UI: the app should respond to a button click event (for example, opening a...
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

Yes, it is a breaking change and we are working on the fix.
The current behavior matches what the RFC stated (essentially that a block param named
button+<button></button>in the blocks template, would assume that the block param was a yielded closure component and attempt to render it as such), but based on feedback (here and in other issues) we determined that the result is definitely something we consider a breaking change.The current plan (after discussing with the core team on 2018-07-20) is:
until: '4.0.0')This change should not have happened during 3.3, and we will try to figure out why it did (and fix it). However, we do intend for it to land as part of 3.4 (along with support for linting in applications as a general guide).