-
Notifications
You must be signed in to change notification settings - Fork 286
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
Inspector is stomping app's EmberENV #2500
Comments
Probably need to insert this at the top?
Or another way to run code in user space . Inspector must set that property before ember loads as far as i know |
@ef4 do you have an example online website where that happens? do you have other extensions installed? |
i confirmed it happens here: |
We're likely seeing the same issue. Spotted because suddenly the optional feature |
Same here, we spend some time debugging this issue thinking it was our code, and that it was impacting our users, but we came to the conclusion that it was ember inspector that was breaking the app. It happens on chromium browsers: with the ember inspector enabled, we can reproduce the issue, without it the app runs just fine. Also, I confirm that the issue is random. Sometimes, the plugin's config overwrites the application's one. To reproduce it, you have to try multiple times a page refresh. We also noticed that it's related to the |
Yes, the |
This is a non-deterministic failure that depends on how fast the inspector and the app load.
But if the app loads fast and the inspector loads slow, you can suddenly get bizarre results because the inspector completely replaces your
window.EmberENV
with its own here. This throws away your own settings.I think it usually works because the inspector sets first, but that is apparently not guaranteed.
Probably it would be sufficient to make the inspector add properties to an existing
EmberENV
if it finds that one already exists.The text was updated successfully, but these errors were encountered: