(no title)
isakkeyten | 5 years ago
- this this this, so many this keywords
- not a fan of decorators
- constructor and super
- mutability (unless it hides an immutable nature)
- hbs feels weirder to me than jsx
- the fact that you have yet another filetype in your code means even the tiniest components MUST be in more than 1 file, react lets you choose (edit: i rushed, seems there are template literals one can use)
_630w|5 years ago
You end up with few ugly situations. First, I hate that I have to wrap my components (what if you want different fallback for different components? You end up with many wraps), how my UI will render is not isolated anymore. I often end up returning loading view from the components as we as well using it as a fallback for suspense. It just feels wrong. I lack control.
holler|5 years ago
Example you can create some "task" (promise-like), then in a template you have automatic access to it's state so e.g.
``` {{#if this.fetchStoriesTask.isRunning}} loading... {{else}} <span>Loaded 10 Stories</span> {{/if}} ``` https://github.com/machty/ember-concurrency
jmisavage|5 years ago
searchableguy|5 years ago
erikrothoff|5 years ago
Would love the possibility to enable a flag to just enable JS-in HBS like
Kinda like a hybrid of JSX and HBS, but combining the best of both worlds.chriskrycho|5 years ago
While it's not possible today, it's definitely possible in principle. (Vue is a great example of this!)
The folks working on TS integration in Ember (of whom I am one) are very well aware both of the problem, what it will take to solve it, and what the state of the art is elsewhere. No timelines, but we're working on it and when we're done the experience should be comparable to TSX. All of us working on it think TSX is a killer bit of DX and it absolutely is a thing we're aiming to match.
airstrike|5 years ago
lhorie|5 years ago
[1] https://en.wikipedia.org/wiki/Scope_(computer_science)#Lexic...
jeffkeen|5 years ago