-
Notifications
You must be signed in to change notification settings - Fork 28
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
Possible to use this outside of the ember framework? #24
Comments
Currently it isn't setup that way, but this is a goal I have! The main thing we need to do is solidify the low-level APIs we want to expose from |
Hmm, actually after taking a closer look it seems like |
But yes, |
Yes, the other two could be used independently. The concern I would have is that we plan on updating the APIs they expose, since they aren't public yet. We do follow SemVer for those packages, so it would be a proper version bump if we made breaking changes. I expect in the near future we will finalize a design for a final public API that will be made available from If you want to avoid churn as much as possible, I would use only the two following imports: import { tracked } from '@glimmer/tracking';
import { memoizeTracked } from '@glimmer/validator'; You can use tricks like I have in this repo with Also! If you do go down that route, and want to make a PR to make this addon consumable as a normal NPM package, would be happy to merge 😄 Main thing you need to do is customize the ember-addon And then point the package's |
I'm not familiar (at all) with the ember ecosystem, so I'm not confident with making and testing such a change. |
Thanks for the tips, looks like |
following up -- medium term, It's looking like Starbeam will be the reactivity library extracted from glimmer/ember: https://www.starbeamjs.com/ Here are the docs / intro to "reactive collections": https://www.starbeamjs.com/guides/collections.html (however, there isn't an easy way to use Starbeam with ember/glimmer yet) |
From what I can tell, it doesn't appear that I can simply
npm install
this package and use it in a non-ember project like a typical npm package. Autotracking is exactly what I need for my project, but if my assumption is correct that I can't use this (as-is) outside of ember, it looks like I may have to just grab the relevant bits (including @glimmer/tracking) and maintain a similar functionality myself.The text was updated successfully, but these errors were encountered: