-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Relationship data lost when a record is unloaded #3020
Comments
@igorT will your work on the https://github.com/emberjs/data/tree/references have any impact on this issue? |
Looks like this issue will be covered by #3296 |
I too have been experiencing this issue. Actually, it often results in a crash when the 'part' is later reloaded into the store. The stack looks like:
In my case, we unload some data as the user is exiting routes. If they return to the same route, as the data is being pushed back into the store, Did you ever find a workaround, other than not unloading? |
I'm still able to reproduce this using Ember This should be fixed by #4593 |
If this is still a problem we should open a new issue. The recent |
Assume that 'Car' hasMany 'Part', and 'Part' hasMany 'Car'. If a part is unloaded, then loaded again into the store, the information about its relationship to car is lost. I would expect a record's relationship data to survive as long as one of the records in the relationship still exists in the store (at least in the case where the relationship is declared on both models). Here is a jsbin illustrating the issue. I can PR a failing test if this is behavior that should be changed.
The text was updated successfully, but these errors were encountered: