-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Assertion failing in the staging environment build but not in development (modified twice in a single render issue) #15377
Comments
Update: This even happens if the relationships where side-loaded with the include param in JSON api. It says its calling render twice when looking at hotel.#model.isLoaded property? |
Sorry to keep adding to this ticket, but I was able to fix the issue by adding a check in the This is the code I added to the component which fixes the issue:
I don't even know where to begin to debug this :| |
This is starting to concern me now. We have another completely separate app that when we removed the node_modules folder and did a fresh npm install, other places are starting to do this. Did something change in the way this gets handled which it didn't do previously? It's happening on relationships when they get loaded when called through the template syntax of {{somemodel.relationship.property}}. |
I have found this to be due to an update in ember-data in 2.14.X: emberjs/data#5023 Changing ember-data version to 2.13.1 fixed this issue. |
Thank you for the thorough reporting and the links to the issues. |
I'm facing the same issue. I'm side-loading a relationship in the |
Prerequisites:
We are using
ember deploy staging
if that matters.So, we have a model (Hotel) and it has a relationship to many
images
and manyhotel-options
. We are receiving an assertion error that breaks the staging environment but doesn't affect us while we are developing on localhost viaember s
.The property
hotel.image
is a computed property which returns aDS.PromiseObject
to fetch the main image of a hotel. I've added logging to when this method gets called to find out when it has to re-compute the main image but its never called more than once. The the computed method for theimage
property looks similar to below:The same thing happens when we call hotel.hotelOptions.someProperty which is not doing anything like the computed property above, its simply a relationship. I'm assuming this part is breaking because the image issue happens first.
The text was updated successfully, but these errors were encountered: