Hello , I asked a version of the question in Discord, but it didn’t get any traction, so I wanted to ask it here instead.
I’m quite out of the loop WRT Ember Data, but I have a few questions
-
I now see that the description on GH suggests that ED is framework agnostic (I remember reading that was a goal for V5, but I didn’t see it mentioned in this blog post EmberData 5.X Update) - is ED 5 now usable in other frameworks (e.g Vue)?
- I also don’t see any documentation on how to use Ember in other frameworks on the Ember Data GH page or ember-data-overview - 5.0 - Ember API Documentation even though these pages talk about ED being a "data library for Javascript applications. Does anyone have any pointers to some hidden examples: maybe blog posts, discord threads or similar?
-
Is there a simple way to share an Ember Data instance between 2 frameworks in a given tab, for example, if an Ember app is working as a host app on a page and the Ember app may host/embed another Ember app or a Vue app, is there a simple way to share a single ED store which is owned by the host ED app with the hosted Ember or Vue app?
-
In this blog post (EmberData 5.X Update) it mentions
ember-m3
and also maybe bringing some concepts from addons such as m3 into ED core. In our apps we’ve been experimenting withview-models
which are separate (currently plain JS) classes which compose together a given model with FE-specific computed properties & helpers/utils for working with a record instance. This pattern intersects with how I understand m3 since it would allow us to use m3 for our base models and then use view models for custom stuff. The downside is that we don’t currently use the store for these view models (not sure this is a good idea) and that brings its own ergonomic downsides.- So my question is whether this type of pattern is something being considered / explored in the scope of ED 5? I.e some way to use something like M3 whilst also defining frontend-specific custom attributes / functions for a given model record and fetch from the store a synthetic record which composes the m3-like record with the custom stuff?