-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
✨ Rearchitect for Octane and tracked properties #235
✨ Rearchitect for Octane and tracked properties #235
Conversation
862a846
to
7e034d5
Compare
Need to find the best way to test with acceptance tests, or indeed, if acceptance testing is the best level of testing. Until then, let's remove them.
7e034d5
to
c6067db
Compare
140761e
to
5437ac4
Compare
Congrats @achambers ! |
Apologies it took so long. But this new world is soooo much simpler so I'm looking forward to being able to keep it up to date moving forward. Not sure if you're still using/invested in this addon but it'd be wonderful if you are in a position to trial the v2 beta and let me know if you run in to any issues. Just updating my production app so hoping to have have a good idea of how stable it is soon. |
Sadly, I've moved jobs and am no longer doing Ember. Maybe @k-dauda |
This PR is a reimagining of the repo, implemented with glimmer tracking, specifically designed to work with Ember Octane and above.
Tracked properties allows us to remove a significant amount of complexity and to move to more natural Javascript patterns instead of Ember specific ones.
As a result, the intention is that this PR will form the basis for v2 of the addon that will support only Ember versions 3.17 and above.
From a high level this PR removes the concept of Ember services to keep track of the LD client and removes the initializers to instantiate them. It replaces them with simple functions that store and retrieve the client state from an object stored on
window
, not unlike how something like@sentry/browser
operates.A nice addition to this new pattern is that the nicer API that the babel plugin gave us (a
variation
import) is now the exact way we import and use thevariation
function. So, we were able to remove the babel plugin completely and just use JS.@tracked
/Octane world? #201