-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mixin alternatives #349
Comments
I'm interested in this as well. Not only for FastBoot, but all mixins in general. |
Yup that would be great! This isn't a high priority for me now since the apps I work on don't need it, but if someone is motivated to make this happen I'll absolutely merge the PR. |
Yeah, this is also very desirable for anyone working in a TypeScript-based ember app, where |
Looking at the explanation of @chriskrycho over at: This will be a difficult choice, if we want to keep the same functionality as it is working now. |
Thanks PJ! We recently released 0.18 of storefront, which only supports Ember 3.12+. Does that help with the class decorators? Also, I'm okay with releasing a breaking change, especially if it gets us away from mixins. What would it look like if it were service oriented? |
Basically, you would inject a That is exactly what I would recommend here, after thinking about it all morning. Should be a clean and easy transition and it actually makes for a pretty simple implementation as well! |
Yes, I prefer a storefront service as well. it is a lot cleaner (plus I do not like class decorators for reasons described in the forum post). If we look at the different Mixins, there are: LoadableStore LoadableModel FastbootAdapter |
Perhaps it is an idea to undeprecate the functions in the storefront service for starters? |
Hi! Thanks for this addon, it's been a great help to my projects.
I was wondering if there was any plan or idea to migrate away from the mixin implementation of the FastBoot adapter, so it could be used with native classes more easily.
https://embermap.github.io/ember-data-storefront/docs/guides/fastboot
The text was updated successfully, but these errors were encountered: