Saying inline functions in render is bad is like correcting somebody who said "who" to say "whom" when "who" was actually correct.
-
-
I've got a write up coming, but yeah, it's usually click handler type things that aren't even relevant to rendering.
-
Seems fine to inline simple ones, especially () => this.something(something)
-
Even Ember, which on balance has less logic in our render() (templates) than react has an inline action thing.
-
modern ember probably different, but I struggled to keep required referential model identity. People are opting into that and don't need to.
-
What does "referential model identity" mean?
-
if my model wasn't the exact same object between updates, things went nuts.
-
Is this inside lists?
-
this is old ember, I must not be saying the right words, but if you didn't return the same model the whole page would rerender.
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.