DEV Community

Cover image for The case for Embeddable Ember

The case for Embeddable Ember

masters.πŸ€” on June 17, 2019

Photo by Karl Bewick on Unsplash In this post I'm proposing some improvements for Ember in an important, but often overlooked use case: embedding ...
Collapse
 
nullvoxpopuli profile image
NullVoxPopuli

I think this'd be more possible once the community fully migrates over to glimmer components from ember components. I could totally see glimmer components used in React environments without too much effort. Not sure they'd interact performance-wise though. Like, React components like to re-render a lot (nature of JSX)

Collapse
 
dustinsoftware profile image
masters.πŸ€”

Yeah. In my example re renders and props updates are totally ignored, but if props is passed to the useEffect array, the Ember component would get destroyed and recreated each time props change. Need a solid β€œupdate” API for this to be a good DX, haven’t thought through what could look like yet.

Collapse
 
tschoartschi profile image
tschoartschi

That's a really interesting thought. I think the Ember community could use a lot of the knowledge from the Glimmer.js project to make use cases like the one you described possible.

As I mentioned in my blog post, we as the Ember community shouldn't forget about Glimmer.js. Would be great to integrate Glimmer.js better into the Ember eco-system. I think this would widen the possible use cases of Ember.